[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

Guido van Rossum report at bugs.python.org
Sat Oct 14 15:20:31 EDT 2017


Guido van Rossum <guido at python.org> added the comment:

> Moreover, if f_locals can be modified outside a tracing hook, then we have the same problem in a cross-function way, e.g. if function f1() calls function f2() which does sys._getframe(1).f_locals['foo'] = 42.

That's covered by the rule that says sys._getframe() has undefined results.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30744>
_______________________________________


More information about the Python-bugs-list mailing list