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 ncoghlan
Recipients brett.cannon, ncoghlan, pitrou
Date 2012-02-19.14:13:22
SpamBayes Score 2.161219e-06
Marked as misclassified No
Message-id <1329660803.05.0.870162661702.issue14052@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2012-02-19 14:13:23ncoghlansetrecipients: + ncoghlan, brett.cannon, pitrou
2012-02-19 14:13:23ncoghlansetmessageid: <1329660803.05.0.870162661702.issue14052@psf.upfronthosting.co.za>
2012-02-19 14:13:22ncoghlanlinkissue14052 messages
2012-02-19 14:13:22ncoghlancreate