diff --git a/pep-3000.txt b/pep-3000.txt index 0e82d05d7..fd8a5665c 100644 --- a/pep-3000.txt +++ b/pep-3000.txt @@ -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 =========