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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to