Message305747
Yes, that's the way it works (and is intended to work, for performance reasons). The documentation on this could be improved...while it does say globals must be a dict and that locals can be any mapping object, it does it in a sentence that is a bit confusing in this context, and it doesn't make it clear that it has to be a "real" dict, not a subclass. (I wouldn't be surprised if that sentence was written back when you couldn't subclass dict.) |
|
Date |
User |
Action |
Args |
2017-11-07 12:57:38 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, Ilya Polyakovskiy |
2017-11-07 12:57:38 | r.david.murray | set | messageid: <1510059458.28.0.213398074469.issue31968@psf.upfronthosting.co.za> |
2017-11-07 12:57:38 | r.david.murray | link | issue31968 messages |
2017-11-07 12:57:38 | r.david.murray | create | |
|