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 gvanrossum
Recipients
Date 2007-04-23.17:31:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The main reason for using __file__ instead of the filename baked into the code object is that sometimes .pyc files are moved after being compiled; the code object is not updated, but __file__ has the correct path as it reflects how the module was found during import.  Also, code objects may have relative pathnames.
History
Date User Action Args
2007-08-23 15:57:52adminlinkissue1692664 messages
2007-08-23 15:57:52admincreate