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

June 29, 2015
7:39 a.m.
Nick Coghlan added the comment: I mostly like Martin's suggested wording, but would also note that I filed issue 17960 to tighten up the requirements for when we expect assigning to locals() to work. To save folks reading the whole referenced email, I think it would be worth defining that modifying the namespace returned by locals() will affect the runtime namespace at module and class scope and when using exec, but will have no effect at function scope (as locals() returns a copy of the namespace in that case). ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue17546> _______________________________________
3549
Age (days ago)
3549
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nick Coghlan