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 brett.cannon
Recipients BTaskaya, blueyed, brett.cannon, eric.snow, ncoghlan
Date 2019-12-24.17:59:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577210392.94.0.980953015135.issue34444@roundup.psfhosted.org>
In-reply-to
Content
So if you were to insert '.' via PYTHONPATH it would be made absolute as the site module makes all entries in sys.path absolute during startup.

And changing this to have to check every time import runs if an entry in sys.path is absolute would be costly (that's not a insignificant number of stat calls which we always try to avoid during import when possible). Your best option is to insert an absolute path to begin with. Also realize that manipulating sys.path is an advanced thing to do and so I don't think asking people to be "consenting adults" and be careful about adding relative paths on sys.path is an unreasonable thing to ask.

So while I appreciate the report, Daniel, and the motivation, I'm closing this as "won't fix" as the overhead of implementing this is too high.
History
Date User Action Args
2019-12-24 17:59:53brett.cannonsetrecipients: + brett.cannon, ncoghlan, blueyed, eric.snow, BTaskaya
2019-12-24 17:59:52brett.cannonsetmessageid: <1577210392.94.0.980953015135.issue34444@roundup.psfhosted.org>
2019-12-24 17:59:52brett.cannonlinkissue34444 messages
2019-12-24 17:59:52brett.cannoncreate