anatoly techtonik added the comment:

Amaury, from user's point of view (I am not a core developer - I just need to 
troubleshoot complicated Python code) the object (the internal structure) 
returned by locals() has different behavior than a normal dict.

Normal dict in Python is updated by user code (which "I as a user" can see and 
can inspect for further troubleshooting) and for locals's dict this is not 
correct. 

If dict and locals's object are of the same type, I'd expect them to be 
interchangeable.

By proposing a documentation fix as a final remedy, please think about the 
entry point through which users come to this "trap".

----------

_______________________________________
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