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.

Author terry.reedy
Recipients amaury.forgeotdarc, bgailer, docs@python, eric.snow, georg.brandl, nedbat, techtonik, terry.reedy
Date 2013-03-30.05:34:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364621648.5.0.936999282942.issue17546@psf.upfronthosting.co.za>
In-reply-to
Content
After the last exchange on #7083, Guido emailed me that I could/should revised the doc a bit, but he said he did *not* want the details explained because he regards them as CPython implementation details and not part of the language definition. I have not done so yet because of other issues, especially the Idle PEP and related discussion. What is needed is something like

"The relationship between the local namespace and the locals dict is undefined between calls to locals(). Changes to either may or may not be propagated to the other."

Perhaps add "The dict returned by locals() is intended to be used immediately, either for introspection or for passing on to functions such as eval() and exec()." and even "It is not intended to be saved and used later."

What I have not figured out yet is how to integrate the above with the current text.
History
Date User Action Args
2013-03-30 05:34:08terry.reedysetrecipients: + terry.reedy, georg.brandl, amaury.forgeotdarc, techtonik, nedbat, bgailer, docs@python, eric.snow
2013-03-30 05:34:08terry.reedysetmessageid: <1364621648.5.0.936999282942.issue17546@psf.upfronthosting.co.za>
2013-03-30 05:34:08terry.reedylinkissue17546 messages
2013-03-30 05:34:07terry.reedycreate