summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-01-30 01:27:28 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-01-30 01:27:28 (GMT)
commit69c327988a43bf3b4de5394af5193c449cbcde14 (patch)
tree8d67157c26fc21a02cd407e889de1a3096e275a3 /Misc/NEWS
parent251ef9666e44792a71c5f1cb83c5b1f3b110a46f (diff)
downloadcpython-69c327988a43bf3b4de5394af5193c449cbcde14.zip
cpython-69c327988a43bf3b4de5394af5193c449cbcde14.tar.gz
cpython-69c327988a43bf3b4de5394af5193c449cbcde14.tar.bz2
add note about two kinds of illegal imports that are now checked
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e3ea276..fa66952 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,12 @@ What's New in Python 2.1 alpha 1?
Core language, builtins, and interpreter
+- The compiler will report a SyntaxError if "from ... import *" occurs
+ in a function or class scope or if a name bound by the import
+ statement is declared global in the same scope. The language
+ reference has also documented that these cases are illegal, but
+ they were not enforced.
+
- There is a new Unicode companion to the PyObject_Str() API
called PyObject_Unicode(). It behaves in the same way as the
former, but assures that the returned value is an Unicode object