[Python-Dev] locals() different behaviour when tracing? (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Oct 8 17:38:48 CEST 2009
- Previous message: [Python-Dev] locals() different behaviour when tracing?
- Next message: [Python-Dev] A new way to configure logging
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Anders Waldenborg <anders 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.
- Previous message: [Python-Dev] locals() different behaviour when tracing?
- Next message: [Python-Dev] A new way to configure logging
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]