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 r.david.murray
Recipients Ilya Polyakovskiy, docs@python, r.david.murray
Date 2017-11-07.12:57:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510059458.28.0.213398074469.issue31968@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2017-11-07 12:57:38r.david.murraysetrecipients: + r.david.murray, docs@python, Ilya Polyakovskiy
2017-11-07 12:57:38r.david.murraysetmessageid: <1510059458.28.0.213398074469.issue31968@psf.upfronthosting.co.za>
2017-11-07 12:57:38r.david.murraylinkissue31968 messages
2017-11-07 12:57:38r.david.murraycreate