Message163803
| 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: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 |
|