Message185325
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". |
|
Date |
User |
Action |
Args |
2013-03-27 12:03:00 | techtonik | set | recipients:
+ techtonik, amaury.forgeotdarc, docs@python, eric.snow |
2013-03-27 12:03:00 | techtonik | set | messageid: <1364385780.68.0.2563031821.issue17546@psf.upfronthosting.co.za> |
2013-03-27 12:03:00 | techtonik | link | issue17546 messages |
2013-03-27 12:03:00 | techtonik | create | |
|