[issue21736] Add __file__ attribute to frozen modules

Barry A. Warsaw report at bugs.python.org
Thu Jun 12 18:35:39 CEST 2014


Barry A. Warsaw added the comment:

I'm -0 on this patch.  I can understand that in some sense, frozen modules do semantically have an associated file, but OTOH, once they're frozen the connection to their file is broken.  Also, I think anything that assumes __file__ exists is simply broken and should be fixed.  There are other cases than frozen modules where a module would have no reasonable value for __file__ and thus shouldn't have one.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21736>
_______________________________________


More information about the Python-bugs-list mailing list