[Python-checkins] CVS: python/dist/src/Misc NEWS,1.108,1.109
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 29 Jan 2001 17:27:30 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv17351/Misc
Modified Files:
NEWS
Log Message:
add note about two kinds of illegal imports that are now checked
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.108
retrieving revision 1.109
diff -C2 -r1.108 -r1.109
*** NEWS 2001/01/29 06:41:00 1.108
--- NEWS 2001/01/30 01:27:28 1.109
***************
*** 33,36 ****
--- 33,42 ----
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