[docs] [issue17546] Document the circumstances where the locals() dict gets updated
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Mar 27 11:24:15 CET 2013
Amaury Forgeot d'Arc added the comment:
The previous title, "rename type returned by locals() to livedict" did not describe the reality, since locals() returns a regular dict.
[Would you call x.__dict__ a livedict?]
So either this issue should be closed as invalid, because it's based on incorrect understandings of Python internals; or we could improve documentation about locals() in order to remove surprising behavior and (real) confusion in programmers' minds.
Python tracker <report at bugs.python.org>
More information about the docs