Message163097
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.) |
|
Date |
User |
Action |
Args |
2012-06-18 12:12:26 | mark.dickinson | set | recipients:
+ mark.dickinson, johnf, docs@python |
2012-06-18 12:12:26 | mark.dickinson | set | messageid: <1340021546.75.0.752321482362.issue15099@psf.upfronthosting.co.za> |
2012-06-18 12:12:26 | mark.dickinson | link | issue15099 messages |
2012-06-18 12:12:25 | mark.dickinson | create | |
|