[issue42197] Disable automatic update of frame locals during tracing

Mark Shannon report at bugs.python.org
Wed Jan 20 06:01:17 EST 2021


Mark Shannon <mark at hotpy.org> added the comment:

I don't think so.
Tracing is already somewhat fragile, see https://bugs.python.org/issue30744.
Making it more complex is likely to add more bugs.

PEP 558 should help, as f_locals becomes a proxy. 
There are some minor issues with PEP 558 (I'm not convinced that it is completely robust), but it should fix this issue.

Ultimately, what we need is a decent debugger API, something along the lines of the JVMTI.

----------

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


More information about the Python-bugs-list mailing list