You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FrozenImporter (in Lib/importlib/_bootstrap.py) has a get_source() method but it always returns None. Now that __file__ is set on frozen (stdlib) modules, we can implement FrozenImporter.get_source() appropriately.
Activity
ericsnowcurrently commentedon Oct 28, 2021
FrozenImporter (in Lib/importlib/_bootstrap.py) has a get_source() method but it always returns None. Now that __file__ is set on frozen (stdlib) modules, we can implement FrozenImporter.get_source() appropriately.
ericsnowcurrently commentedon Oct 28, 2021
Note that once the get_source() implementation is done, the only missing method for importlib.abc.InspectLoader is source_to_code(). (See https://docs.python.org/3/library/importlib.html#importlib.abc.InspectLoader.)