diff --git a/pep-3100.txt b/pep-3100.txt index 11a156d86..2a4ae9b10 100644 --- a/pep-3100.txt +++ b/pep-3100.txt @@ -112,6 +112,8 @@ Core language * The ``__nonzero__`` special method will be renamed to ``__bool__`` and have to return a bool. The typeobject slot will be called ``tp_bool`` [23]_ [done] +* Dict comprehensions, as first proposed in [#pep274]_ [done] + {K(x): V(x) for x in S if P(x)} means dict((K(x), V(x)) for x in S if P(x)). To be removed: @@ -371,6 +373,9 @@ References .. [#pep238] PEP 238 (Changing the Division Operator) http://www.python.org/dev/peps/pep-0238 +.. [#pep274] PEP 274 (Dict Comprehensions) + http://www.python.org/dev/peps/pep-0274 + .. [#pep289] PEP 289 ("Generator Expressions") http://www.python.org/dev/peps/pep-0289