Eric Snow <ericsnowcurren...@gmail.com> 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]

Again, frozen modules don't have files but instead were only derived from files 
during the build process.  For frozen stdlib modules we happen to know where to 
find the corresponding source files.


[1] https://docs.python.org/3/library/importlib.html#importlib.abc.FileLoader
[2] https://docs.python.org/3/library/importlib.html#importlib.abc.SourceLoader

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45659>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to