[Python-checkins] r56028 - peps/trunk/pep-3100.txt

guido.van.rossum python-checkins at python.org
Tue Jun 19 01:49:34 CEST 2007

Author: guido.van.rossum
Date: Tue Jun 19 01:49:27 2007
New Revision: 56028

Some updates.
Remove an item that's covered by acceptance of PEP 3121.
Remove an item that's covered by rejection of PEP 3122 and PEP 299.

Modified: peps/trunk/pep-3100.txt
--- peps/trunk/pep-3100.txt	(original)
+++ peps/trunk/pep-3100.txt	Tue Jun 19 01:49:27 2007
@@ -98,9 +98,6 @@
     [x for x in 1, 2] will need to be:  [x for x in (1, 2)]
   - Lambdas may have to be parenthesized [#pep308]_
-* Builtin module init function names (PyMODINIT_FUNC) will be prefixed
-  with _Py (or Py).  Currently they aren't namespace safe since the names
-  start with init.
 * __builtins__ should get a different name *or* completely unified
   with __builtin__.  Keeping both with confusingly similar spellings
   and semantics is evil. [#__builtin__]_
@@ -112,7 +109,6 @@
   NB. {range(x)} means set([range(x)]), NOT set(range(x)).
   There's no literal for an empty set; use set() (or {1}&{2} :-).
   There's no frozenset literal; they are too rarely needed.
-* Might reconsider PEP 299 [#pep299]_: special __main__() function in modules.
 * 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]
@@ -149,11 +145,12 @@
   literals with 'L' or 'l' suffix disappear [1]_ [done]
 * Make all strings be Unicode, and have a separate bytes() type [1]_
   The new string type will be called 'str'.
+  [halfway done, in py3k-struni branch]
 * Return iterable views instead of lists where appropriate for atomic
   type methods (e.g. ``dict.keys()``, ``dict.values()``,
   ``dict.items()``, etc.); iter* methods will be removed. [done]
 * Make ``string.join()`` stringify its arguments? [18]_
-* Fix file() so it returns a ValueError if the mode is bad rather than IOError.
+* Fix open() so it returns a ValueError if the mode is bad rather than IOError.
   (This probably affects lots of places, we should review the exceptions
   and fix them if inappropriate.)

More information about the Python-checkins mailing list