[issue24565] the f_lineno getter is broken

Xavier de Gaye report at bugs.python.org
Sun Mar 25 08:08:23 EDT 2018


Xavier de Gaye <xdegaye at gmail.com> added the comment:

A trace function may also be set in extension modules by PyEval_SetTrace() and it may not use f->f_trace. This is another reason why f->f_trace cannot be used in PyFrame_GetLineNumber() to know when f->f_lineno is valid.

----------

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


More information about the Python-bugs-list mailing list