[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

STINNER Victor report at bugs.python.org
Wed Feb 23 13:33:46 EST 2022


STINNER Victor <vstinner at python.org> added the comment:

Ned Batchelder:
> I went ahead and changed the coverage.py code to this: (...)

I proposed a coverage PR using PyObject_GetAttrString(frame, "f_lasti") which should works on all Python versions:
https://github.com/nedbat/coveragepy/pull/1331

----------

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


More information about the Python-bugs-list mailing list