Message153702
Purging __file__ of relative references isn't a problem - they're *supposed* to always be absolute. The import.c version just stuffs it up sometimes (mainly due to the way it handles the empty string in the path).
IOW, while the importlib behaviour *is* different from the old behaviour, it's really a long overdue fix rather than a defect.
(You can still induce weirdness by adding paths involving '.' or '..' to sys.path, but that's more a case of "don't do that". We add the empty string ourselves, so we should handle it more cleanly than we do in import.c) |
|
Date |
User |
Action |
Args |
2012-02-19 14:13:23 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, pitrou |
2012-02-19 14:13:23 | ncoghlan | set | messageid: <1329660803.05.0.870162661702.issue14052@psf.upfronthosting.co.za> |
2012-02-19 14:13:22 | ncoghlan | link | issue14052 messages |
2012-02-19 14:13:22 | ncoghlan | create | |
|