[Python-checkins] python/nondist/peps pep-3000.txt,1.5,1.6

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Fri Aug 27 20:43:35 CEST 2004


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

Modified Files:
	pep-3000.txt 
Log Message:
Remove __cmp__ mention.

Add about list comps being syntactic sugar for genexps to list().  Reword
mention of stdlib reorg.  Mention comparisons other than == and != between
disparate types will raise an error unless excplicitly allowed.


Index: pep-3000.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-3000.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- pep-3000.txt	27 Aug 2004 13:16:31 -0000	1.5
+++ pep-3000.txt	27 Aug 2004 18:43:32 -0000	1.6
@@ -66,8 +66,10 @@
   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]_
+* Have list comprehensions be syntactic sugar for passing an
+  equivalent generator expression to ``list()``.
+* Comparisons other than ``==`` and ``!=`` between disparate types
+  will raise an exception unless explicitly supported by the type
 
 To be removed:
 
@@ -86,7 +88,6 @@
 * Relevant functions should consume iterators (e.g. ``min()``,
   ``max()``)
 
-
 To be removed:
 
 * ``apply()``: use ``f(*args, **kw)`` instead [2]_
@@ -107,7 +108,7 @@
 Standard library
 ================
 
-Reorganize the standard library into packages
+* Reorganize the standard library to not be as shallow
 
 To be removed:
 
@@ -133,9 +134,6 @@
 .. [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