[issue16781] execfile/exec execution of class statement does not access locals()

Benjamin Peterson report at bugs.python.org
Wed Dec 26 17:00:10 CET 2012


Benjamin Peterson added the comment:

Basically, it calls locals() in the function scope, which is undefined behavior.

----------

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


More information about the Python-bugs-list mailing list