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 <>
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.
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: <>
2012-06-24 15:44:12brett.cannonlinkissue415492 messages
2012-06-24 15:44:11brett.cannoncreate