From a584e413a0026b1bda3f50fc74d3f2454c414a6c Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 27 Aug 2004 18:43:32 +0000 Subject: [PATCH] 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. --- pep-3000.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pep-3000.txt b/pep-3000.txt index 899df04ab..7cb071d07 100644 --- a/pep-3000.txt +++ b/pep-3000.txt @@ -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 =========