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 steven.daprano
Recipients docs@python, steven.daprano
Date 2017-12-23.05:52:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1514008362.41.0.213398074469.issue32413@psf.upfronthosting.co.za>
In-reply-to
Content
The obvious documentation for locals() fails to mention that when called from the top level of a module (outside of a function or class body) it returns the same dict as globals().

https://docs.python.org/2/library/functions.html#locals
History
Date User Action Args
2017-12-23 05:52:42steven.dapranosetrecipients: + steven.daprano, docs@python
2017-12-23 05:52:42steven.dapranosetmessageid: <1514008362.41.0.213398074469.issue32413@psf.upfronthosting.co.za>
2017-12-23 05:52:42steven.dapranolinkissue32413 messages
2017-12-23 05:52:41steven.dapranocreate