Ned Batchelder added the comment:

I would say it something like this:

"The dictionary returned by locals() is an accurate snapshot of the local 
namespace at the time it is called.  After the call returns, changes to one may 
or may not be reflected in the other.  The dictionary may change unpredictably 
after the call, and how it does is implementation-specific.    Holding a 
reference to the dictionary may produce surprising effects."

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17546>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to