diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-02 20:06:28 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-02 20:06:28 (GMT) |
commit | d6b1cf9a552c3286e3ab382889131e0541cd6c14 (patch) | |
tree | e2ad5c5503fcae33d47f46fe18f9991c7c02fdfc /Misc | |
parent | 5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d (diff) | |
download | cpython-d6b1cf9a552c3286e3ab382889131e0541cd6c14.zip cpython-d6b1cf9a552c3286e3ab382889131e0541cd6c14.tar.gz cpython-d6b1cf9a552c3286e3ab382889131e0541cd6c14.tar.bz2 |
Fix spelling errors.
Add note about _symtable.
Add note that 'from ... import *' restriction may go away -- and move
the whole entry closer to the top, because it might bite people.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -11,7 +11,7 @@ Core language, builtins, and interpreter In all previous version of Python, names were resolved in exactly three namespaces -- the local namespace, the global namespace, and - the builtin namespace. According to this old defintion, if a + the builtin namespace. According to this old definition, if a function A is defined within a function B, the names bound in B are not visible in A. The new rules make names bound in B visible in A, unless A contains a name binding that hides the binding in B. @@ -36,6 +36,13 @@ Core language, builtins, and interpreter the argument named str and an error will occur when helper() is called. +- The compiler will report a SyntaxError if "from ... import *" occurs + in a function or class scope. The language reference has documented + that this case is illegal, but the compiler never checked for it. + The recent introduction of nested scope makes the meaning of this + form of name binding ambiguous. In a future release, the compiler + may allow this form when there is no possibility of ambiguity. + - repr(string) is easier to read, now using hex escapes instead of octal, and using \t, \n and \r instead of \011, \012 and \015 (respectively): @@ -46,12 +53,6 @@ Core language, builtins, and interpreter - Functions are now compared and hashed by identity, not by value, since the func_code attribute is writable. -- The compiler will report a SyntaxError if "from ... import *" occurs - in a function or class scope. The language reference has documented - that this case is illegal, but the compiler never checked for it. - The recent introduction of nested scope makes the meaning of this - form of name binding ambiguous. - - Weak references (PEP 205) have been added. This involves a few changes in the core, an extension module (_weakref), and a Python module (weakref). The weakref module is the public interface. It @@ -97,6 +98,10 @@ Standard library - test_capi.py is a start at running tests of the Python C API. The tests are implemented by the new Modules/_testmodule.c. +- A new extension module, _symtable, provides provisional access to the + internal symbol table used by the Python compiler. A higher-level + interface will be added on top of _symtable in a future release. + Windows changes - Build procedure: the zlib project is built in a different way that |