This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author johnf
Recipients docs@python, johnf, mark.dickinson
Date 2012-06-18.12:34:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340022868.32.0.436923241001.issue15099@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-06-18 12:34:28johnfsetrecipients: + johnf, mark.dickinson, docs@python
2012-06-18 12:34:28johnfsetmessageid: <1340022868.32.0.436923241001.issue15099@psf.upfronthosting.co.za>
2012-06-18 12:34:27johnflinkissue15099 messages
2012-06-18 12:34:27johnfcreate