[Python-Dev] Python 3.4 change in importlib/init.py breaking cxFreeze? (original) (raw)

Barry Warsaw barry at python.org
Mon Mar 10 15:01:49 CET 2014


On Mar 10, 2014, at 11:25 PM, Nick Coghlan wrote:

file is expected to always be set (including when loaded from a zipfile

Actually, file is an optional attribute on modules since PEP 420 and Python 3.2. It's usually there, but unlike in previous version of Python, if the module doesn't actually come from a "file", there's no longer a requirement to craft some mythical value for it if it doesn't make sense.

-Barry



More information about the Python-Dev mailing list