[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

Dec. 29, 2012
1:26 a.m.
R. David Murray added the comment: It looks like you are correct Terry. The problem, I think, is that the behavior of name spaces inside a class definition is probably the least intuitive aspect of python scoping, so that sentence, while technically complete, doesn't provide enough guidance. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16781> _______________________________________
4463
Age (days ago)
4463
Last active (days ago)
0 comments
1 participants
participants (1)
-
R. David Murray