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 eric.snow
Recipients amaury.forgeotdarc, bgailer, docs@python, eric.snow, georg.brandl, nedbat, techtonik
Date 2013-03-28.22:51:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364511097.21.0.681852864421.issue17546@psf.upfronthosting.co.za>
In-reply-to
Content
> Changing the type of the locals() return isn't the right way to solve
> this problem.  Better docs is the way to do it.  If someone is calling
> locals(), they should read the docs.  Examining the type of values is
> discouraged in Python, we shouldn't expect people to discover
> nonintuitive behavior because the type has been artificially changed
> to "livedict".

+1

Issue #7083 was created to promote a semantic change (ultimately) and it was rejected in deference to a doc change.  That's part of why this ticket was changed to focus on documentation.

My only concern is that locals() has some pretty heavy implementation specifics, so any doc change needs to respect that (or be part of an effort to tighten the spec for locals()).
History
Date User Action Args
2013-03-28 22:51:37eric.snowsetrecipients: + eric.snow, georg.brandl, amaury.forgeotdarc, techtonik, nedbat, bgailer, docs@python
2013-03-28 22:51:37eric.snowsetmessageid: <1364511097.21.0.681852864421.issue17546@psf.upfronthosting.co.za>
2013-03-28 22:51:37eric.snowlinkissue17546 messages
2013-03-28 22:51:36eric.snowcreate