Message 185349 - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Content
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")