[New-bugs-announce] [issue7083] locals() behaviour differs when tracing is in effect

André Bjärby report at bugs.python.org
Thu Oct 8 15:49:58 CEST 2009


New submission from André Bjärby <andre.bjarby at gmail.com>:

Running the attached script shows that locals() behaves differently
depending on whether sys.settrace() is active.

This does not occur when calling locals() in the global scope, only when
used inside functions.

----------
components: Extension Modules, Interpreter Core
files: localstest.py
messages: 93745
nosy: andbj
severity: normal
status: open
title: locals() behaviour differs when tracing is in effect
type: behavior
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.1
Added file: http://bugs.python.org/file15081/localstest.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7083>
_______________________________________


More information about the New-bugs-announce mailing list