Mention Python 3000 name.

Fix bullet points under things to return iterators.

Mention true division, True, False, and as becoming keywords and the removal of
__cmp__ .
This commit is contained in:
Brett Cannon 2004-08-27 05:24:03 +00:00
parent 31ea3d0f38
commit c9ab70af1c
1 changed files with 18 additions and 3 deletions

View File

@ -14,7 +14,8 @@ Post-History:
Abstract
========
This PEP describes the changes currently envisioned in Python 3.0, a
This PEP describes the changes currently envisioned in Python 3.0
(also called Python 3000), a
hypothetical future release of Python that can break backwards
compatibility with the existing body of Python code.
@ -42,6 +43,7 @@ Core language
=============
* Remove distinction between int and long types. [1]_
* True division becomes default behavior
* Make all strings be Unicode, and have a separate bytes() type. [1]_
* ``exec`` as a statement is not worth it -- make it a function
* Add optional declarations for static typing
@ -53,13 +55,17 @@ Core language
.bar(4, .foo)
* Return iterators instead of lists
* ``d.keys()``, ``.values()``, ``.items()``
* ``range()``, ``zip()``
- ``dict.keys()``, ``.values()``, ``.items()``
- ``range()``, ``zip()``
* Replace ``print`` by a function: ``write(x,y,z)``,
``writeln(x,y,z)`` [2]_
* Do something so you can catch multiple exceptions using ``except E1,
E2, E3:``. Maybe use ``except E1, E2, E3 as err:`` if you want the
error variable? [3]_
* ``True`` and ``False`` become keywords [4]_
* ``as`` becomes a keyword [5]_
* Remove ``__cmp__`` as a magic method -- rich comparisons make
``__cmp__`` conflict with TOOWTDI [6]_
To be removed:
@ -119,6 +125,15 @@ References
.. [3] Python Wiki:
http://www.python.org/moin/Python3.0
.. [4] python-dev email ("Constancy of None")
http://mail.python.org/pipermail/python-dev/2004-July/046294.html
.. [5] python-dev email (" "as" to be a keyword?")
http://mail.python.org/pipermail/python-dev/2004-July/046316.html
.. [6] python-dev email ("lists vs. tuples")
http://mail.python.org/pipermail/python-dev/2003-March/034073.html
Copyright
=========