John Firestone <jo...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to