[docs] [issue15099] exec of function doesn't call __getitem__ or __missing__ on undefined global
John Firestone
report at bugs.python.org
Mon Jun 18 14:34:28 CEST 2012
John Firestone <johnf at freenet.de> added the comment:
I find the behavior inconsistent. As you can see from this example, the exec'uted code *does* call the instance's overloaded __getitem__ and __missing__ methods when outside a function, but doesn't when inside.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15099>
_______________________________________
More information about the docs
mailing list