[docs] [issue17546] Document the circumstances where the locals() dict gets updated
Ned Batchelder
report at bugs.python.org
Sat Mar 30 16:28:23 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue17546>
_______________________________________
More information about the docs
mailing list