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.
This commit is contained in:
Brett Cannon 2004-08-27 18:43:32 +00:00
parent 28d9c521f0
commit a584e413a0
1 changed files with 5 additions and 7 deletions

View File

@ -66,8 +66,10 @@ Core language
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 @@ Changes:
* Relevant functions should consume iterators (e.g. ``min()``,
``max()``)
To be removed:
* ``apply()``: use ``f(*args, **kw)`` instead [2]_
@ -107,7 +108,7 @@ To be removed:
Standard library
================
Reorganize the standard library into packages
* Reorganize the standard library to not be as shallow
To be removed:
@ -133,9 +134,6 @@ References
.. [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
=========