This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients Arfrever, Trundle, barry, brett.cannon, eric.smith, eric.snow, jcea, jkloth, lemburg, loewis, meador.inge
Date 2013-01-02.16:53:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 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 to not flat-out require os.__file__ exist.
Date User Action Args
2013-01-02 16:53:54brett.cannonsetrecipients: + brett.cannon, lemburg, loewis, barry, jcea, eric.smith, jkloth, Arfrever, Trundle, meador.inge, eric.snow
2013-01-02 16:53:54brett.cannonsetmessageid: <>
2013-01-02 16:53:54brett.cannonlinkissue16047 messages
2013-01-02 16:53:54brett.cannoncreate