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, Ramchandra Apte, aronacher, brett.cannon, eric.araujo, eric.snow, glchapman, gvanrossum, isandler, jhylton, ncoghlan, prescod
Date 2012-06-24.15:44:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340552653.34.0.545248091021.issue415492@psf.upfronthosting.co.za>
In-reply-to
Content
So co_filename is absolute in Python 3.3, but __file__ on modules is not if a relative path is used from sys.path (as Nick pointed out). Changing this would possibly break code as this has been baked into the import system for quite some time. I think Nick as suggested making all paths absolute for __file__, but I can't remember where that discussion was held and why we never changed the semantics.

Regardless, __file__ being absolute is a different issue than co_filename, so I'm closing this at out of date.
History
Date User Action Args
2012-06-24 15:44:13brett.cannonsetrecipients: + brett.cannon, gvanrossum, jhylton, prescod, glchapman, isandler, ncoghlan, aronacher, eric.araujo, Arfrever, eric.snow, Ramchandra Apte
2012-06-24 15:44:13brett.cannonsetmessageid: <1340552653.34.0.545248091021.issue415492@psf.upfronthosting.co.za>
2012-06-24 15:44:12brett.cannonlinkissue415492 messages
2012-06-24 15:44:11brett.cannoncreate