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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17546>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to