Brett Cannon added the comment:

I agree that it makes no sense to define __file__ for frozen modules. 
Originally they did because that was the only way to tell if a module was a 
builtin module or not, but with the imp module's API on top of 
sys.builtin_module_names, there is no need to maintain this invariant.

As for site.py requiring the module to have a __file__ on os, I think that is 
somewhat bogus as well and should be optional so issue (3) for Meador should be 
to patch site.py to not flat-out require os.__file__ exist.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16047>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to