Change by Michael Bejda :
--
keywords: +patch
pull_requests: +13727
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13850
___
Python tracker
<https://bugs.python.org/issu
Michael Bejda added the comment:
I do not believe it is specific to the way we package things:
$ cat a.py:
import inspect
def foo(): pass
inspect.getsource(foo)
$ python3 -m compileall -b a.py
$ black a.py # to remove the empty lines
$ python3 a.pyc # Index error
Traceback (most
Michael Bejda added the comment:
I don't think linecache.checkcache helps here. In your example, it would detect
the modification, but I don't see how it could persist data if the compilation
and execution are different processes.
--