[New-bugs-announce] [issue17546] rename type returned by locals() to livedict

anatoly techtonik report at bugs.python.org
Mon Mar 25 18:20:11 CET 2013


New submission from anatoly techtonik:

-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.

----------
components: Library (Lib)
messages: 185213
nosy: techtonik
priority: normal
severity: normal
status: open
title: rename type returned by locals() to livedict
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17546>
_______________________________________


More information about the New-bugs-announce mailing list