[issue21736] Add __file__ attribute to frozen modules
Marc-Andre Lemburg
report at bugs.python.org
Sun Jun 15 11:22:27 CEST 2014
Marc-Andre Lemburg added the comment:
On 15.06.2014 01:53, Nick Coghlan wrote:
>
> Can we just drop "__file__" and set the origin for frozen modules to
> something that includes the original file name?
This wouldn't really help, because too much code out there uses
the __file__ attribute and assumes it's always available.
Note that the filename information is already available in the
code object's co_filename attribute.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21736>
_______________________________________
More information about the Python-bugs-list
mailing list