Message163803
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:13 | brett.cannon | set | recipients:
+ brett.cannon, gvanrossum, jhylton, prescod, glchapman, isandler, ncoghlan, aronacher, eric.araujo, Arfrever, eric.snow, Ramchandra Apte |
2012-06-24 15:44:13 | brett.cannon | set | messageid: <1340552653.34.0.545248091021.issue415492@psf.upfronthosting.co.za> |
2012-06-24 15:44:12 | brett.cannon | link | issue415492 messages |
2012-06-24 15:44:11 | brett.cannon | create | |
|