[Python-checkins] r45763 - peps/trunk/pep-3100.txt
guido.van.rossum
python-checkins at python.org
Thu Apr 27 19:48:03 CEST 2006
Author: guido.van.rossum
Date: Thu Apr 27 19:48:03 2006
New Revision: 45763
Modified:
peps/trunk/pep-3100.txt
Log:
Add set literals.
Clarify that the new string type will be 'str'.
Modified: peps/trunk/pep-3100.txt
==============================================================================
--- peps/trunk/pep-3100.txt (original)
+++ peps/trunk/pep-3100.txt Thu Apr 27 19:48:03 2006
@@ -104,6 +104,12 @@
and semantics is evil.
* Attributes on functions of the form ``func_whatever`` will be renamed
``__whatever__`` [25]_
+* Set literals and comprehensions [27]_
+ {/} means set(); {x} means set([x]); {x, y} means set([x, y]).
+ {F(x) for x in S if P(x)} means set(F(x) for x in S if P(x)).
+ NB. {range(x)} means set([range(x)]), NOT set(range(x)).
+ There's no frozenset literal; they are too rarely needed.
+ The {/} part is still controversial.
To be removed:
@@ -129,6 +135,7 @@
* Remove distinction between int and long types [1]_
(int may become an abstract base type, with short and long subtypes.)
* Make all strings be Unicode, and have a separate bytes() type [1]_
+ The new string type will be called 'str'.
* Return iterators instead of lists where appropriate for atomic type methods
(e.g. ``dict.keys()``, ``dict.values()``, ``dict.items()``, etc.); iter*
methods will be removed
@@ -307,6 +314,9 @@
.. [26] python-3000 email ("More wishful thinking")
http://mail.python.org/pipermail/python-3000/2006-April/000810.html
+ [27] python-3000 email ("sets in P3K?")
+ http://mail.python.org/pipermail/python-3000/2006-April/001286.html
+
.. [#pep238] PEP 238 (Changing the Division Operator)
http://www.python.org/dev/peps/pep-0238
More information about the Python-checkins
mailing list