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.
This commit is contained in:
Guido van Rossum 2007-06-18 23:49:27 +00:00
parent 7ff5632c66
commit 17c044d600
1 changed files with 2 additions and 5 deletions

View File

@ -98,9 +98,6 @@ Core language
[x for x in 1, 2] will need to be: [x for x in (1, 2)] [x for x in 1, 2] will need to be: [x for x in (1, 2)]
- Lambdas may have to be parenthesized [#pep308]_ - 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 * __builtins__ should get a different name *or* completely unified
with __builtin__. Keeping both with confusingly similar spellings with __builtin__. Keeping both with confusingly similar spellings
and semantics is evil. [#__builtin__]_ and semantics is evil. [#__builtin__]_
@ -112,7 +109,6 @@ Core language
NB. {range(x)} means set([range(x)]), NOT set(range(x)). 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 literal for an empty set; use set() (or {1}&{2} :-).
There's no frozenset literal; they are too rarely needed. 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__`` * The ``__nonzero__`` special method will be renamed to ``__bool__``
and have to return a bool. The typeobject slot will be called and have to return a bool. The typeobject slot will be called
``tp_bool`` [23]_ [done] ``tp_bool`` [23]_ [done]
@ -149,11 +145,12 @@ Atomic Types
literals with 'L' or 'l' suffix disappear [1]_ [done] literals with 'L' or 'l' suffix disappear [1]_ [done]
* Make all strings be Unicode, and have a separate bytes() type [1]_ * Make all strings be Unicode, and have a separate bytes() type [1]_
The new string type will be called 'str'. The new string type will be called 'str'.
[halfway done, in py3k-struni branch]
* Return iterable views instead of lists where appropriate for atomic * Return iterable views instead of lists where appropriate for atomic
type methods (e.g. ``dict.keys()``, ``dict.values()``, type methods (e.g. ``dict.keys()``, ``dict.values()``,
``dict.items()``, etc.); iter* methods will be removed. [done] ``dict.items()``, etc.); iter* methods will be removed. [done]
* Make ``string.join()`` stringify its arguments? [18]_ * 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 (This probably affects lots of places, we should review the exceptions
and fix them if inappropriate.) and fix them if inappropriate.)