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 techtonik
Recipients techtonik
Date 2013-03-25.17:20:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364232011.36.0.2936348393.issue17546@psf.upfronthosting.co.za>
In-reply-to
Content
-locals() returns object that does't walk like a duck.
+locals() returns object that does't work like a dict.

Much of the confusion with locals() comes from the fact that returned object is labelled a dict, but this heisendict changes its behavior when you're trying to introspect it. So, to give users a hint that this object is different, I propose to rename it to a different type and supply an appropriate help() for it.
History
Date User Action Args
2013-03-25 17:20:11techtoniksetrecipients: + techtonik
2013-03-25 17:20:11techtoniksetmessageid: <1364232011.36.0.2936348393.issue17546@psf.upfronthosting.co.za>
2013-03-25 17:20:11techtoniklinkissue17546 messages
2013-03-25 17:20:11techtonikcreate