2006-04-05 03:17:23 -04:00
|
|
|
|
PEP: 3100
|
|
|
|
|
Title: Miscellaneous Python 3.0 Plans
|
2004-08-20 08:43:19 -04:00
|
|
|
|
Version: $Revision$
|
|
|
|
|
Last-Modified: $Date$
|
2007-10-03 07:24:09 -04:00
|
|
|
|
Author: Brett Cannon <brett@python.org>
|
2012-02-10 08:10:37 -05:00
|
|
|
|
Status: Final
|
|
|
|
|
Type: Process
|
2004-08-20 08:43:19 -04:00
|
|
|
|
Content-Type: text/x-rst
|
|
|
|
|
Created: 20-Aug-2004
|
2004-08-20 11:05:39 -04:00
|
|
|
|
Post-History:
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Abstract
|
|
|
|
|
========
|
|
|
|
|
|
2006-04-05 03:17:23 -04:00
|
|
|
|
This PEP, previously known as PEP 3000, describes smaller scale changes
|
|
|
|
|
and new features for which no separate PEP is written yet, all targeted
|
|
|
|
|
for Python 3000.
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
|
|
|
|
The list of features included in this document is subject to change
|
|
|
|
|
and isn't binding on the Python development community; features may be
|
|
|
|
|
added, removed, and modified at any time. The purpose of this list is
|
|
|
|
|
to focus our language development effort on changes that are steps to
|
|
|
|
|
3.0, and to encourage people to invent ways to smooth the transition.
|
|
|
|
|
|
|
|
|
|
This document is not a wish-list that anyone can extend. While there
|
|
|
|
|
are two authors of this PEP, we're just supplying the text; the
|
|
|
|
|
decisions for which changes are listed in this document are made by
|
2004-08-20 11:05:39 -04:00
|
|
|
|
Guido van Rossum, who has chosen them as goals for Python 3.0.
|
|
|
|
|
|
2006-04-05 03:17:23 -04:00
|
|
|
|
Guido's pronouncements on things that will not change in Python 3.0
|
|
|
|
|
are recorded in PEP 3099. [#pep3099]_
|
|
|
|
|
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
|
|
|
|
General goals
|
|
|
|
|
=============
|
|
|
|
|
|
|
|
|
|
A general goal is to reduce feature duplication by removing old ways
|
|
|
|
|
of doing things. A general principle of the design will be that one
|
|
|
|
|
obvious way of doing something is enough. [1]_
|
|
|
|
|
|
|
|
|
|
|
2006-03-01 00:32:44 -05:00
|
|
|
|
Influencing PEPs
|
|
|
|
|
================
|
|
|
|
|
|
|
|
|
|
* PEP 238 (Changing the Division Operator) [#pep238]_
|
|
|
|
|
* PEP 328 (Imports: Multi-Line and Absolute/Relative) [#pep328]_
|
|
|
|
|
* PEP 343 (The "with" Statement) [#pep343]_
|
|
|
|
|
* PEP 352 (Required Superclass for Exceptions) [#pep352]_
|
|
|
|
|
|
|
|
|
|
|
2006-04-24 14:52:08 -04:00
|
|
|
|
Style changes
|
|
|
|
|
=============
|
|
|
|
|
|
|
|
|
|
* The C style guide will be updated to use 4-space indents, never tabs.
|
|
|
|
|
This style should be used for all new files; existing files can be
|
2017-03-24 17:11:33 -04:00
|
|
|
|
updated only if there is no hope to ever merge a particular file from
|
2006-04-24 14:52:08 -04:00
|
|
|
|
the Python 2 HEAD. Within a file, the indentation style should be
|
|
|
|
|
consistent. No other style guide changes are planned ATM.
|
|
|
|
|
|
|
|
|
|
|
2004-08-20 08:43:19 -04:00
|
|
|
|
Core language
|
|
|
|
|
=============
|
|
|
|
|
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* True division becomes default behavior [#pep238]_ [done]
|
2006-09-06 02:42:42 -04:00
|
|
|
|
* ``exec`` as a statement is not worth it -- make it a function [done]
|
2007-03-14 13:52:19 -04:00
|
|
|
|
* Add optional declarations for static typing [#pep3107]_ [10]_ [done]
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* Support only new-style classes; classic classes will be gone [1]_ [done]
|
2007-02-09 18:52:38 -05:00
|
|
|
|
* Replace ``print`` by a function [14]_ [#pep3105]_ [done]
|
|
|
|
|
* The ``softspace`` attribute of files goes away. [done]
|
2007-07-27 15:21:32 -04:00
|
|
|
|
* Use ``except E1, E2, E3 as err:`` if you want the error variable. [3]_ [done]
|
|
|
|
|
* ``None`` becomes a keyword [4]_; also ``True`` and ``False`` [done]
|
2006-12-19 14:01:10 -05:00
|
|
|
|
* ``...`` to become a general expression element [16]_ [done]
|
2006-09-06 02:42:42 -04:00
|
|
|
|
* ``as`` becomes a keyword [5]_ (starting in 2.6 already) [done]
|
2004-08-27 14:43:32 -04:00
|
|
|
|
* Have list comprehensions be syntactic sugar for passing an
|
2004-09-02 15:10:13 -04:00
|
|
|
|
equivalent generator expression to ``list()``; as a consequence the
|
2007-07-27 15:21:32 -04:00
|
|
|
|
loop variable will no longer be exposed [#pep289]_ [done]
|
2004-08-27 14:43:32 -04:00
|
|
|
|
* Comparisons other than ``==`` and ``!=`` between disparate types
|
2006-09-06 02:42:42 -04:00
|
|
|
|
will raise an exception unless explicitly supported by the type [6]_ [done]
|
2005-12-14 23:55:32 -05:00
|
|
|
|
* floats will not be acceptable as arguments in place of ints for operations
|
2016-07-11 11:14:08 -04:00
|
|
|
|
where floats are inadvertently accepted (PyArg_ParseTuple() i & l formats)
|
2007-08-04 22:20:27 -04:00
|
|
|
|
* Remove from ... import * at function scope. [done] This means that functions
|
2006-12-26 01:08:28 -05:00
|
|
|
|
can always be optimized and support for unoptimized functions can go away.
|
2007-04-29 20:55:35 -04:00
|
|
|
|
* Imports [#pep328]_
|
|
|
|
|
+ Imports will be absolute by default. [done]
|
|
|
|
|
+ Relative imports must be explicitly specified. [done]
|
2008-03-08 15:33:19 -05:00
|
|
|
|
+ Indirection entries in ``sys.modules`` (i.e., a value of ``None`` for
|
|
|
|
|
``A.string`` means to use the top-level ``string`` module) will not be
|
|
|
|
|
supported.
|
2007-07-27 15:21:32 -04:00
|
|
|
|
* __init__.py might become optional in sub-packages? __init__.py will still
|
2005-12-14 23:55:32 -05:00
|
|
|
|
be required for top-level packages.
|
2006-02-27 11:26:26 -05:00
|
|
|
|
* Cleanup the Py_InitModule() variants {,3,4} (also import and parser APIs)
|
2006-02-18 15:32:56 -05:00
|
|
|
|
* Cleanup the APIs exported in pythonrun, etc.
|
2006-02-28 12:18:37 -05:00
|
|
|
|
* Some expressions will require parentheses that didn't in 2.x:
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
2006-02-27 12:38:27 -05:00
|
|
|
|
- List comprehensions will require parentheses around the iterables.
|
|
|
|
|
This will make list comprehensions more similar to generator comprehensions.
|
2007-07-27 15:21:32 -04:00
|
|
|
|
[x for x in 1, 2] will need to be: [x for x in (1, 2)] [done]
|
|
|
|
|
- Lambdas may have to be parenthesized [#pep308]_ [NO]
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
2007-12-01 23:49:16 -05:00
|
|
|
|
* In order to get rid of the confusion between __builtin__ and __builtins__,
|
|
|
|
|
it was decided to rename __builtin__ (the module) to builtins, and to leave
|
2008-02-13 10:37:54 -05:00
|
|
|
|
__builtins__ (the sandbox hook) alone. [#builtin]_ [#builtins]_ [done]
|
2006-04-22 17:21:18 -04:00
|
|
|
|
* Attributes on functions of the form ``func_whatever`` will be renamed
|
2007-02-26 12:33:15 -05:00
|
|
|
|
``__whatever__`` [17]_ [done]
|
2006-12-19 14:01:10 -05:00
|
|
|
|
* Set literals and comprehensions [19]_ [20]_ [done]
|
2006-05-04 14:15:10 -04:00
|
|
|
|
{x} means set([x]); {x, y} means set([x, y]).
|
2006-04-27 13:48:03 -04:00
|
|
|
|
{F(x) for x in S if P(x)} means set(F(x) for x in S if P(x)).
|
|
|
|
|
NB. {range(x)} means set([range(x)]), NOT set(range(x)).
|
2006-05-04 14:15:10 -04:00
|
|
|
|
There's no literal for an empty set; use set() (or {1}&{2} :-).
|
2006-04-27 13:48:03 -04:00
|
|
|
|
There's no frozenset literal; they are too rarely needed.
|
2006-11-28 14:33:39 -05:00
|
|
|
|
* The ``__nonzero__`` special method will be renamed to ``__bool__``
|
|
|
|
|
and have to return a bool. The typeobject slot will be called
|
2006-12-19 14:01:10 -05:00
|
|
|
|
``tp_bool`` [23]_ [done]
|
2007-07-11 08:35:47 -04:00
|
|
|
|
* Dict comprehensions, as first proposed in [#pep274]_ [done]
|
|
|
|
|
{K(x): V(x) for x in S if P(x)} means dict((K(x), V(x)) for x in S if P(x)).
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
|
|
|
|
To be removed:
|
|
|
|
|
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* String exceptions: use instances of an Exception class [2]_ [done]
|
2006-12-19 14:01:10 -05:00
|
|
|
|
* ``raise Exception, "message"``: use ``raise Exception("message")`` [12]_
|
2007-12-09 10:29:34 -05:00
|
|
|
|
[done]
|
2021-07-14 14:01:22 -04:00
|
|
|
|
* ``x``: use ``repr(x)`` [2]_ [done]
|
2006-08-25 02:03:06 -04:00
|
|
|
|
* The ``<>`` operator: use ``!=`` instead [3]_ [done]
|
2007-08-22 17:33:30 -04:00
|
|
|
|
* The __mod__ and __divmod__ special methods on float. [they should stay] [21]_
|
2007-11-27 12:55:30 -05:00
|
|
|
|
* Drop unbound methods [7]_ [25]_ [done]
|
2007-12-09 10:29:34 -05:00
|
|
|
|
* METH_OLDARGS [done]
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* WITH_CYCLE_GC [done]
|
2006-12-19 14:01:10 -05:00
|
|
|
|
* __getslice__, __setslice__, __delslice__ [#sequence-types]_;
|
2007-12-09 10:29:34 -05:00
|
|
|
|
remove slice opcodes and use slice objects. [done]
|
2007-06-11 14:44:47 -04:00
|
|
|
|
* ``__oct__``, ``__hex__``: use ``__index__`` in ``oct()`` and ``hex()``
|
|
|
|
|
instead. [done]
|
2007-08-11 03:09:00 -04:00
|
|
|
|
* ``__methods__`` and ``__members__`` [done]
|
2005-12-14 23:55:32 -05:00
|
|
|
|
* C APIs (see code):
|
|
|
|
|
PyFloat_AsString, PyFloat_AsReprString, PyFloat_AsStringEx,
|
|
|
|
|
PySequence_In, PyEval_EvalFrame, PyEval_CallObject,
|
|
|
|
|
_PyObject_Del, _PyObject_GC_Del, _PyObject_GC_Track, _PyObject_GC_UnTrack
|
2006-01-03 03:22:57 -05:00
|
|
|
|
PyString_AsEncodedString, PyString_AsDecodedString
|
2006-03-01 00:32:44 -05:00
|
|
|
|
PyArg_NoArgs, PyArg_GetInt, intargfunc, intintargfunc
|
|
|
|
|
|
2007-05-30 00:57:08 -04:00
|
|
|
|
PyImport_ReloadModule ?
|
|
|
|
|
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
|
|
|
|
Atomic Types
|
|
|
|
|
============
|
|
|
|
|
|
2007-01-15 19:43:39 -05:00
|
|
|
|
* Remove distinction between int and long types; 'long' built-in type and
|
|
|
|
|
literals with 'L' or 'l' suffix disappear [1]_ [done]
|
2006-03-01 00:32:44 -05:00
|
|
|
|
* Make all strings be Unicode, and have a separate bytes() type [1]_
|
2007-12-09 10:29:34 -05:00
|
|
|
|
The new string type will be called 'str'. See PEP 3137. [done]
|
2007-03-04 01:05:40 -05:00
|
|
|
|
* Return iterable views instead of lists where appropriate for atomic
|
|
|
|
|
type methods (e.g. ``dict.keys()``, ``dict.values()``,
|
|
|
|
|
``dict.items()``, etc.); iter* methods will be removed. [done]
|
2007-12-09 10:29:34 -05:00
|
|
|
|
* Make ``string.join()`` stringify its arguments? [18]_ [NO]
|
2007-06-18 19:49:27 -04:00
|
|
|
|
* Fix open() so it returns a ValueError if the mode is bad rather than IOError.
|
2007-07-27 15:21:32 -04:00
|
|
|
|
[done]
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
|
|
|
|
To be removed:
|
|
|
|
|
|
|
|
|
|
* ``basestring.find()`` and ``basestring.rfind()``; use ``basestring.index()``
|
2007-03-04 01:05:40 -05:00
|
|
|
|
or ``basestring.[r]partition()`` or
|
2016-07-11 11:14:08 -04:00
|
|
|
|
``basestring.rindex()`` in a try/except block??? [13]_ [UNLIKELY]
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* ``file.xreadlines()`` method [#file-object]_ [done]
|
2007-07-27 15:21:32 -04:00
|
|
|
|
* ``dict.setdefault()``? [15]_ [UNLIKELY]
|
|
|
|
|
* ``dict.has_key()`` method; use ``in`` operator [done]
|
2008-02-13 09:58:05 -05:00
|
|
|
|
* ``list.sort()`` and ``builtin.sorted()`` methods: eliminate ``cmp``
|
|
|
|
|
parameter [27]_ [done]
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
2005-08-27 14:27:33 -04:00
|
|
|
|
Built-in Namespace
|
|
|
|
|
==================
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
2005-04-28 14:57:40 -04:00
|
|
|
|
* Make built-ins return an iterator where appropriate (e.g. ``range()``,
|
2007-07-03 02:05:09 -04:00
|
|
|
|
``zip()``, ``map()``, ``filter()``, etc.) [done]
|
2007-02-26 12:04:01 -05:00
|
|
|
|
* Remove ``input()`` and rename ``raw_input()`` to ``input()``.
|
|
|
|
|
If you need the old input(), use eval(input()). [done]
|
2005-03-05 14:38:42 -05:00
|
|
|
|
* Introduce ``trunc()``, which would call the ``__trunc__()`` method on its
|
2005-04-28 14:57:40 -04:00
|
|
|
|
argument; suggested use is for objects like float where calling ``__int__()``
|
2008-01-05 15:00:01 -05:00
|
|
|
|
has data loss, but an integral representation is still desired? [8]_ [done]
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* Exception hierarchy changes [#pep352]_ [done]
|
2007-06-11 14:44:47 -04:00
|
|
|
|
* Add a ``bin()`` function for a binary representation of integers [done]
|
2004-08-20 11:05:39 -04:00
|
|
|
|
|
2004-08-20 08:43:19 -04:00
|
|
|
|
To be removed:
|
|
|
|
|
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* ``apply()``: use ``f(*args, **kw)`` instead [2]_ [done]
|
2007-12-09 10:29:34 -05:00
|
|
|
|
* ``buffer()``: must die (use a bytes() type instead) (?) [2]_ [done]
|
2009-10-04 11:59:16 -04:00
|
|
|
|
* ``callable()``: just use isinstance(x, collections.Callable) (?) [2]_ [done]
|
2005-03-14 23:06:02 -05:00
|
|
|
|
* ``compile()``: put in ``sys`` (or perhaps in a module of its own) [2]_
|
2007-05-20 03:45:53 -04:00
|
|
|
|
* ``coerce()``: no longer needed [2]_ [done]
|
2007-08-11 20:43:42 -04:00
|
|
|
|
* ``execfile()``, ``reload()``: use ``exec()`` [2]_ [done]
|
2006-12-19 15:51:35 -05:00
|
|
|
|
* ``intern()``: put in ``sys`` [2]_, [22]_ [done]
|
2007-12-09 04:18:28 -05:00
|
|
|
|
* ``reduce()``: put in ``functools``, a loop is more readable most of the
|
|
|
|
|
times [2]_, [9]_ [done]
|
2007-05-20 03:45:53 -04:00
|
|
|
|
* ``xrange()``: use ``range()`` instead [1]_ [See range() above] [done]
|
2007-09-13 18:49:14 -04:00
|
|
|
|
* ``StandardError``: this is a relic from the original exception hierarchy;
|
2007-07-27 15:21:32 -04:00
|
|
|
|
subclass ``Exception`` instead. [done]
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Standard library
|
|
|
|
|
================
|
|
|
|
|
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* Reorganize the standard library to not be as shallow?
|
2005-12-14 23:55:32 -05:00
|
|
|
|
* Move test code to where it belongs, there will be no more test() functions
|
|
|
|
|
in the standard library
|
2006-08-18 17:34:25 -04:00
|
|
|
|
* Convert all tests to use either doctest or unittest.
|
2006-04-05 03:17:23 -04:00
|
|
|
|
* For the procedures of standard library improvement, see PEP 3001 [#pep3001]_
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
|
|
|
|
To be removed:
|
|
|
|
|
|
2007-01-09 20:30:33 -05:00
|
|
|
|
* The sets module. [done]
|
2006-07-06 23:33:39 -04:00
|
|
|
|
* stdlib modules to be removed
|
|
|
|
|
+ see docstrings and comments in the source
|
2007-12-14 18:59:22 -05:00
|
|
|
|
- ``macfs`` [to do]
|
|
|
|
|
- ``new``, ``reconvert``, ``stringold``, ``xmllib``,
|
2007-05-15 18:00:14 -04:00
|
|
|
|
``pcre``, ``pypcre``, ``strop`` [all done]
|
2006-12-19 14:01:10 -05:00
|
|
|
|
+ see PEP 4 [#pep4]_
|
2007-05-31 22:35:09 -04:00
|
|
|
|
- ``buildtools``,
|
|
|
|
|
``mimetools``,
|
2007-05-16 00:31:51 -04:00
|
|
|
|
``multifile``,
|
2007-05-16 00:44:21 -04:00
|
|
|
|
``rfc822``,
|
2007-09-22 04:23:41 -04:00
|
|
|
|
[to do]
|
2007-10-05 01:39:45 -04:00
|
|
|
|
- ``mpz``, ``posixfile``, ``regsub``, ``rgbimage``,
|
2007-12-09 10:29:34 -05:00
|
|
|
|
``sha``, ``statcache``, ``sv``, ``TERMIOS``, ``timing`` [done]
|
2007-05-31 22:35:09 -04:00
|
|
|
|
- ``cfmfile``, ``gopherlib``, ``md5``, ``MimeWriter``, ``mimify`` [done]
|
2007-05-16 00:44:21 -04:00
|
|
|
|
- ``cl``, ``sets``, ``xreadlines``, ``rotor``, ``whrandom`` [done]
|
2007-05-16 00:31:51 -04:00
|
|
|
|
+ Everything in lib-old [#pep4]_ [done]
|
2006-07-06 23:33:39 -04:00
|
|
|
|
- ``Para``, ``addpack``, ``cmp``, ``cmpcache``, ``codehack``,
|
|
|
|
|
``dircmp``, ``dump``, ``find``, ``fmt``, ``grep``,
|
|
|
|
|
``lockfile``, ``newdir``, ``ni``, ``packmail``, ``poly``,
|
|
|
|
|
``rand``, ``statcache``, ``tb``, ``tzparse``, ``util``,
|
|
|
|
|
``whatsound``, ``whrandom``, ``zmod``
|
2007-03-20 23:01:51 -04:00
|
|
|
|
* ``sys.exitfunc``: use atexit module instead [#sys-module]_,
|
|
|
|
|
[#exitfunc-patch]_ [done]
|
2005-12-14 23:55:32 -05:00
|
|
|
|
* ``sys.exc_type``, ``sys.exc_values``, ``sys.exc_traceback``:
|
|
|
|
|
not thread-safe; use ``sys.exc_info()`` or an attribute
|
2007-05-29 03:59:42 -04:00
|
|
|
|
of the exception [2]_ [11]_ [#sys-module]_ [done]
|
2007-02-09 20:17:29 -05:00
|
|
|
|
* ``sys.exc_clear``: Python 3's except statements provide the same
|
2007-05-29 04:18:41 -04:00
|
|
|
|
functionality [24]_ [#pep3110]_ [#sys-module]_ [done]
|
2006-07-06 23:33:39 -04:00
|
|
|
|
* ``array.read``, ``array.write`` [#array-module]_
|
2006-08-23 21:13:18 -04:00
|
|
|
|
* ``operator.isCallable`` : ``callable()`` built-in is being removed
|
2007-03-21 16:15:07 -04:00
|
|
|
|
[#operator-module]_ [#remove-operator-funcs]_ [done]
|
2006-08-23 21:13:18 -04:00
|
|
|
|
* ``operator.sequenceIncludes`` : redundant thanks to
|
2007-03-21 16:15:07 -04:00
|
|
|
|
``operator.contains`` [#operator-module]_ [#remove-operator-funcs]_ [done]
|
2019-06-25 00:58:50 -04:00
|
|
|
|
* In the thread module, the acquire_lock() and release_lock() aliases
|
2006-02-28 15:56:18 -05:00
|
|
|
|
for the acquire() and release() methods on lock objects.
|
|
|
|
|
(Probably also just remove the thread module as a public API,
|
|
|
|
|
in favor of always using threading.py.)
|
2006-04-05 03:17:23 -04:00
|
|
|
|
* UserXyz classes, in favour of XyzMixins.
|
|
|
|
|
|
2007-02-24 11:36:15 -05:00
|
|
|
|
* Remove the unreliable empty() and full() methods from Queue.py?
|
|
|
|
|
* Remove jumpahead() from the random API?
|
2007-12-14 20:02:40 -05:00
|
|
|
|
* Make the primitive for random be something generating random bytes
|
2007-02-24 11:36:15 -05:00
|
|
|
|
rather than random floats?
|
|
|
|
|
* Get rid of Cookie.SerialCookie and Cookie.SmartCookie?
|
|
|
|
|
* Modify the heapq.heapreplace() API to compare the new value to the top
|
|
|
|
|
of the heap?
|
2004-08-20 08:43:19 -04:00
|
|
|
|
|
2006-03-22 00:24:31 -05:00
|
|
|
|
Outstanding Issues
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
* Require C99, so we can use // comments, named initializers, declare variables
|
2006-08-18 17:34:25 -04:00
|
|
|
|
without introducing a new scope, among other benefits. (Also better support
|
|
|
|
|
for IEEE floating point issues like NaN and infinities?)
|
2006-03-22 00:24:31 -05:00
|
|
|
|
|
2006-03-22 04:38:59 -05:00
|
|
|
|
* Remove support for old systems, including: BeOS, RISCOS, (SGI) Irix, Tru64
|
2006-03-22 00:24:31 -05:00
|
|
|
|
|
2006-04-05 03:17:23 -04:00
|
|
|
|
|
2004-08-20 08:43:19 -04:00
|
|
|
|
References
|
|
|
|
|
==========
|
|
|
|
|
|
2004-08-20 11:05:39 -04:00
|
|
|
|
.. [1] PyCon 2003 State of the Union:
|
2004-08-20 08:43:19 -04:00
|
|
|
|
http://www.python.org/doc/essays/ppt/pycon2003/pycon2003.ppt
|
|
|
|
|
|
2004-08-20 11:05:39 -04:00
|
|
|
|
.. [2] Python Regrets:
|
2004-08-20 08:43:19 -04:00
|
|
|
|
http://www.python.org/doc/essays/ppt/regrets/PythonRegrets.pdf
|
|
|
|
|
|
2004-08-20 11:05:39 -04:00
|
|
|
|
.. [3] Python Wiki:
|
2004-08-20 08:43:19 -04:00
|
|
|
|
http://www.python.org/moin/Python3.0
|
|
|
|
|
|
2004-08-27 01:24:03 -04:00
|
|
|
|
.. [4] python-dev email ("Constancy of None")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2004-July/046294.html
|
2004-08-27 01:24:03 -04:00
|
|
|
|
|
2004-12-11 02:54:17 -05:00
|
|
|
|
.. [5] python-dev email (' "as" to be a keyword?')
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2004-July/046316.html
|
2004-08-27 01:24:03 -04:00
|
|
|
|
|
2004-12-11 02:54:17 -05:00
|
|
|
|
.. [6] python-dev email ("Comparing heterogeneous types")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2004-June/045111.html
|
2004-12-11 02:54:17 -05:00
|
|
|
|
|
2005-01-21 23:39:23 -05:00
|
|
|
|
.. [7] python-dev email ("Let's get rid of unbound methods")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2005-January/050625.html
|
2005-01-21 23:39:23 -05:00
|
|
|
|
|
2005-03-14 23:06:02 -05:00
|
|
|
|
.. [8] python-dev email ("Fixing _PyEval_SliceIndex so that integer-like
|
2005-03-05 14:38:42 -05:00
|
|
|
|
objects can be used")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2005-February/051674.html
|
2005-03-05 14:38:42 -05:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [9] Guido's blog ("The fate of reduce() in Python 3000")
|
|
|
|
|
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
|
|
|
|
|
|
|
|
|
|
.. [10] Guido's blog ("Python Optional Typechecking Redux")
|
|
|
|
|
http://www.artima.com/weblogs/viewpost.jsp?thread=89161
|
|
|
|
|
|
|
|
|
|
.. [11] python-dev email ("anonymous blocks")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2005-April/053060.html
|
2005-04-28 16:04:32 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [12] python-dev email ("PEP 8: exception style")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2005-August/055190.html
|
2005-08-27 14:27:33 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [13] python-dev email (Remove str.find in 3.0?)
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2005-August/055705.html
|
2005-08-06 19:13:59 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [14] python-dev email (Replacement for print in Python 3.0)
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2005-September/056154.html
|
2005-09-07 20:26:20 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [15] python-dev email ("defaultdict")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2006-February/061261.html
|
2006-02-19 02:10:16 -05:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [16] python-3000 email
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-April/000996.html
|
2006-04-19 17:56:53 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [17] python-3000 email ("Pronouncement on parameter lists")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-April/001175.html
|
2006-04-22 17:21:18 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [18] python-3000 email ("More wishful thinking")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-April/000810.html
|
2006-04-27 05:55:12 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [19] python-3000 email ("sets in P3K?")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-April/001286.html
|
2006-04-27 13:48:03 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [20] python-3000 email ("sets in P3K?")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-May/001666.html
|
2006-05-04 14:15:10 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [21] python-3000 email ("bug in modulus?")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-May/001735.html
|
2006-05-04 14:15:10 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [22] SF patch "sys.id() and sys.intern()"
|
2018-07-21 19:57:17 -04:00
|
|
|
|
https://bugs.python.org/issue1601678
|
2006-12-19 14:01:10 -05:00
|
|
|
|
|
|
|
|
|
.. [23] python-3000 email ("__nonzero__ vs. __bool__")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2006-November/004524.html
|
2008-02-13 09:58:05 -05:00
|
|
|
|
|
2007-02-09 20:17:29 -05:00
|
|
|
|
.. [24] python-3000 email ("Pre-peps on raise and except changes")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2007-February/005672.html
|
2006-07-06 23:33:39 -04:00
|
|
|
|
|
2007-02-24 11:36:15 -05:00
|
|
|
|
.. [25] python-3000 email ("Py3.0 Library Ideas")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2007-February/005726.html
|
2007-02-24 11:36:15 -05:00
|
|
|
|
|
2007-11-24 12:54:55 -05:00
|
|
|
|
.. [26] python-dev email ("Should we do away with unbound methods in Py3k?")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2007-November/075279.html
|
2007-11-24 12:54:55 -05:00
|
|
|
|
|
2008-02-13 09:58:05 -05:00
|
|
|
|
.. [27] python-dev email ("Mutable sequence .sort() signature")
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2008-February/076818.html
|
2008-02-13 09:58:05 -05:00
|
|
|
|
|
2006-07-06 23:33:39 -04:00
|
|
|
|
.. [#sys-module] Python docs (sys -- System-specific parameters and functions)
|
2008-10-02 08:40:49 -04:00
|
|
|
|
http://docs.python.org/library/sys.html
|
2006-07-06 23:33:39 -04:00
|
|
|
|
|
|
|
|
|
.. [#operator-module] Python docs (operator -- Standard operators as functions)
|
2008-10-02 08:40:49 -04:00
|
|
|
|
http://docs.python.org/library/operator.html
|
2006-07-06 23:33:39 -04:00
|
|
|
|
|
|
|
|
|
.. [#array-module] Python docs (array -- Efficient arrays of numeric values)
|
2008-10-02 08:40:49 -04:00
|
|
|
|
http://docs.python.org/library/array.html
|
2006-07-06 23:33:39 -04:00
|
|
|
|
|
|
|
|
|
.. [#file-object] Python docs (File objects)
|
2008-10-02 08:40:49 -04:00
|
|
|
|
http://docs.python.org/library/stdtypes.html
|
2006-07-06 23:33:39 -04:00
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [#sequence-types] Python docs (Additional methods for emulation of sequence types)
|
2008-10-02 08:40:49 -04:00
|
|
|
|
http://docs.python.org/reference/datamodel.html#additional-methods-for-emulation-of-sequence-types
|
2006-12-19 14:01:10 -05:00
|
|
|
|
|
|
|
|
|
.. [#pep4] PEP 4 ("Deprecation of Standard Modules")
|
2006-07-06 23:33:39 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0004
|
2006-06-28 02:47:51 -04:00
|
|
|
|
|
2006-03-01 00:32:44 -05:00
|
|
|
|
.. [#pep238] PEP 238 (Changing the Division Operator)
|
2006-04-05 03:17:23 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0238
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
2007-07-11 08:35:47 -04:00
|
|
|
|
.. [#pep274] PEP 274 (Dict Comprehensions)
|
|
|
|
|
http://www.python.org/dev/peps/pep-0274
|
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [#pep289] PEP 289 ("Generator Expressions")
|
2006-07-06 23:33:39 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0289
|
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [#pep299] PEP 299 ("Special __main__() function in modules")
|
2006-07-06 23:33:39 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0299
|
|
|
|
|
|
2006-12-19 14:01:10 -05:00
|
|
|
|
.. [#pep308] PEP 308 ("Conditional Expressions")
|
2006-07-06 23:33:39 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0308
|
|
|
|
|
|
2006-03-01 00:32:44 -05:00
|
|
|
|
.. [#pep328] PEP 328 (Imports: Multi-Line and Absolute/Relative)
|
2006-04-05 03:17:23 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0328
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
|
|
|
|
.. [#pep343] PEP 343 (The "with" Statement)
|
2006-04-05 03:17:23 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0343
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
|
|
|
|
.. [#pep352] PEP 352 (Required Superclass for Exceptions)
|
2006-04-05 03:17:23 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0352
|
|
|
|
|
|
2006-05-02 14:32:39 -04:00
|
|
|
|
.. [#pep3001] PEP 3001 (Process for reviewing and improving standard
|
|
|
|
|
library modules) http://www.python.org/dev/peps/pep-3001
|
2006-04-05 03:17:23 -04:00
|
|
|
|
|
|
|
|
|
.. [#pep3099] PEP 3099 (Things that will Not Change in Python 3000)
|
|
|
|
|
http://www.python.org/dev/peps/pep-3099
|
|
|
|
|
|
2006-12-19 16:20:00 -05:00
|
|
|
|
.. [#pep3105] PEP 3105 (Make print a function)
|
|
|
|
|
http://www.python.org/dev/peps/pep-3105
|
2006-03-01 00:32:44 -05:00
|
|
|
|
|
2006-12-26 01:08:28 -05:00
|
|
|
|
.. [#pep3107] PEP 3107 (Function Annotations)
|
|
|
|
|
http://www.python.org/dev/peps/pep-3107
|
2017-03-24 17:11:33 -04:00
|
|
|
|
|
2007-02-09 20:17:29 -05:00
|
|
|
|
.. [#pep3110] PEP 3110 (Catching Exceptions in Python 3000)
|
|
|
|
|
http://www.python.org/dev/peps/pep-3110/#semantic-changes
|
2006-12-26 01:08:28 -05:00
|
|
|
|
|
2008-02-13 10:37:54 -05:00
|
|
|
|
.. [#builtin] Approach to resolving __builtin__ vs __builtins__
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-3000/2007-March/006161.html
|
2007-12-01 23:49:16 -05:00
|
|
|
|
|
2008-02-13 10:37:54 -05:00
|
|
|
|
.. [#builtins] New name for __builtins__
|
2017-06-11 15:02:39 -04:00
|
|
|
|
https://mail.python.org/pipermail/python-dev/2007-November/075388.html
|
2017-03-24 17:11:33 -04:00
|
|
|
|
|
2007-03-20 23:01:51 -04:00
|
|
|
|
.. [#exitfunc-patch] Patch to remove sys.exitfunc
|
2018-07-21 19:57:17 -04:00
|
|
|
|
https://bugs.python.org/issue1680961
|
2017-03-24 17:11:33 -04:00
|
|
|
|
|
2007-03-21 16:15:07 -04:00
|
|
|
|
.. [#remove-operator-funcs] Remove deprecated functions from operator
|
2018-07-21 19:57:17 -04:00
|
|
|
|
https://bugs.python.org/issue1516309
|
2006-07-06 23:33:39 -04:00
|
|
|
|
|
2004-08-20 08:43:19 -04:00
|
|
|
|
Copyright
|
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
This document has been placed in the public domain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
..
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: indented-text
|
|
|
|
|
indent-tabs-mode: nil
|
|
|
|
|
sentence-end-double-space: t
|
|
|
|
|
fill-column: 70
|
|
|
|
|
End:
|