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 mark.dickinson
Recipients docs@python, johnf, mark.dickinson
Date 2012-06-18.12:12:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340021546.75.0.752321482362.issue15099@psf.upfronthosting.co.za>
In-reply-to
Content
This looks like a documentation issue:  it's well documented that in the exec statement, the globals dictionary must be a dict.  What's not so clear from the documentation (AFAICT) is that it must actually have *type* dict, rather than merely being an instance of dict.  (Or, from experimentation, it *can* be an instance of a dict subclass, but the underlying C-implemented dict methods are called directly, so overloads for __getitem__ and the like don't have any effect.)
History
Date User Action Args
2012-06-18 12:12:26mark.dickinsonsetrecipients: + mark.dickinson, johnf, docs@python
2012-06-18 12:12:26mark.dickinsonsetmessageid: <1340021546.75.0.752321482362.issue15099@psf.upfronthosting.co.za>
2012-06-18 12:12:26mark.dickinsonlinkissue15099 messages
2012-06-18 12:12:25mark.dickinsoncreate