]> granicus.if.org Git - python/commitdiff
add note about two kinds of illegal imports that are now checked
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 30 Jan 2001 01:27:28 +0000 (01:27 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 30 Jan 2001 01:27:28 +0000 (01:27 +0000)
Misc/NEWS

index e3ea276bb7ae1d0961aabddb1a1257e6d8c27b96..fa66952ce690f9bd559a510c1f2ccb45a89097ca 100644 (file)
--- 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