[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

Marc-Andre Lemburg report at bugs.python.org
Fri Oct 22 17:40:15 EDT 2021


Marc-Andre Lemburg <mal at egenix.com> added the comment:

I've looked at how the importlib freeze logic works, compared to Tools/freeze/freeze.py.

The only difference I can spot is that importlib uses C to build the C array and does a compile followed by a marshal.dumps, whereas freeze.py loads all modules into memory and then runs marshal on module.__code__.

Could this cause issues with the line number calculations in 3.10 ?

----------

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


More information about the Python-bugs-list mailing list