[issue45659] Add FrozenImporter.get_filename().

2021-10-28 Thread Eric Snow
Eric Snow added the comment: Note that there isn't any intent currently to implement the FileLoader ABC [1], which would require having FrozenImporter instances, adding the "name" and "path" attributes to them, as well as the get_data() method. The same goes for the SourceLoader ABC. [2]

[issue45659] Add FrozenImporter.get_filename().

2021-10-28 Thread Eric Snow
New submission from Eric Snow : Now that __file__ is set on frozen (stdlib) modules, we can add an implementation for FrozenImporter.get_filename(). This would make FrozenImporter and implementation of ExecutionLoader. [1] There is a caveat: in spec_from_loader() [2] we infer the presence