[docs] [issue17546] Document the circumstances where the locals() dict gets updated

Ned Batchelder report at bugs.python.org
Thu Mar 28 13:18:23 CET 2013


Ned Batchelder added the comment:

Changing the type of the locals() return isn't the right way to solve this problem.  Better docs is the way to do it.  If someone is calling locals(), they should read the docs.  Examining the type of values is discouraged in Python, we shouldn't expect people to discover nonintuitive behavior because the type has been artificially changed to "livedict".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17546>
_______________________________________


More information about the docs mailing list