[issue21736] Add __file__ attribute to frozen modules
Eric Snow
report at bugs.python.org
Thu Oct 14 17:37:53 EDT 2021
Eric Snow <ericsnowcurrently at gmail.com> added the comment:
I've merged the change to add __file__ for frozen stdlib modules (when possible) and to set __path__ appropriately. There are still a number of things to address though:
* set co_filename (for tracebacks)
* implement FrozenImporter.get_filename()
* implement FrozenImporter.get_source()
And then there's the question of supporting __file__, etc. for custom frozen modules. Presumably all those things are still covered by this issue so I'm leaving it open.
----------
stage: patch review -> needs patch
versions: +Python 3.11 -Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21736>
_______________________________________
More information about the Python-bugs-list
mailing list