[issue16047] Tools/freeze no longer works in Python 3

Barry A. Warsaw report at bugs.python.org
Wed Jan 2 17:22:15 CET 2013


Barry A. Warsaw added the comment:

On Jan 02, 2013, at 04:06 PM, Meador Inge wrote:

>I am a little unsure about (3) since I am not sure why the __file__ attribute
>is being removed to begin with.  eric.smith?

This is related to PEP 420, which relaxes the requirement that all modules
have a __file__ attribute.  Now they only need it if it makes sense.  At the
time, we didn't think it made sense for frozen modules to have an __file__.
FrozenImporter.module_repr() provides a reasonable repr in the absence of
__file__.

I'm not sure what to do.  I still think it doesn't make a lot of sense for
frozen modules to have an __file__, but perhaps practicality beats purity
here.

----------

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


More information about the Python-bugs-list mailing list