[Python-checkins] python/dist/src/Misc NEWS,1.777,1.778
nascheme@users.sourceforge.net
nascheme@users.sourceforge.net
Mon, 09 Jun 2003 11:42:25 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv25118/Misc
Modified Files:
NEWS
Log Message:
Warn about creating global variables by __setattr__ that shadow builtin
names. Unfortunately, this is not bulletproof since the module
dictionary can be modified directly.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.777
retrieving revision 1.778
diff -C2 -d -r1.777 -r1.778
*** NEWS 8 Jun 2003 23:10:15 -0000 1.777
--- NEWS 9 Jun 2003 18:42:19 -0000 1.778
***************
*** 44,47 ****
--- 44,53 ----
preferred, then __iter__ can be overriden.
+ - Creating an attribute on a module (i.e. a global variable created by
+ __setattr__) that causes a builtin name to be shadowed now raises a
+ DeprecationWarning. In future versions of Python the effect may be
+ undefined (in order to allow for optimization of global and builtin
+ name lookups).
+
Extension modules
-----------------