[Python-checkins] python/nondist/peps pep-3000.txt,1.3,1.4

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Fri Aug 27 07:24:06 CEST 2004


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14990

Modified Files:
	pep-3000.txt 
Log Message:
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__ .


Index: pep-3000.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-3000.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- pep-3000.txt	23 Aug 2004 18:07:06 -0000	1.3
+++ pep-3000.txt	27 Aug 2004 05:24:03 -0000	1.4
@@ -14,7 +14,8 @@
 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 @@
 =============
 
 * 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 @@
             .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 @@
 .. [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
 =========



More information about the Python-checkins mailing list