[issue45563] inspect.getframeinfo() doesn't handle frames without lineno
Marc-Andre Lemburg
report at bugs.python.org
Fri Oct 22 14:28:40 EDT 2021
Marc-Andre Lemburg <mal at egenix.com> added the comment:
I see this in modules frozen by the Tools/freeze/ tool.
The line numbers shown for such frozen modules in the frameinfo stack are a bit off as well, compared normal Python. Could this be an indication that there's something not working quite right, which then leads to _PyCode_CheckLineNumber() returning -1 ?
The Tools/freeze/ doesn't do anything special, BTW. All it does is load the module and then store the marshal'ed code objects in C arrays. The information read from those C arrays should be the same as what Python reads from PYC files.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45563>
_______________________________________
More information about the Python-bugs-list
mailing list