anatoly techtonik added the comment:
Attached localtest2.py where an empty locals() call changes behavior.
--- localtest.py Wed Mar 27 19:48:06 2013
+++ localtest2.py Wed Mar 27 19:45:19 2013
@@ -3,6 +3,7 @@
def X():
l = locals()
i = "foo"
+ locals()
print("Is 'i' in stored locals()? ", ('i' in l))
print("Running normally")
----------
Added file: http://bugs.python.org/file29597/localtest2.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7083>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com