[Python-Dev] locals() different behaviour when tracing?

Antoine Pitrou solipsis at pitrou.net
Thu Oct 8 17:38:48 CEST 2009


Anders Waldenborg <anders <at> 0x63.nu> writes:
> 
> Is it intentional that locals() returns a copy/snapshot of the local 
> variables sometimes, and sometimes a reference? Like when enabling 
> tracing, such as in the code pasted below.

Since someone else opened a bug, I answered there. Anyone, feel free to correct
me if my answer is wrong.
http://bugs.python.org/issue7083

Regards

Antoine.




More information about the Python-Dev mailing list