[issue45658] Implement FrozenImporter.get_source()

2021-10-28 Thread Eric Snow
New submission from Eric Snow : 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. -- components: Library (Lib)

[issue45658] Implement FrozenImporter.get_source()

2021-10-28 Thread Eric Snow
Eric Snow added the comment: 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.) --