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 serhiy.storchaka
Recipients ericzolf, gregory.p.smith, python-dev, serhiy.storchaka
Date 2021-03-02.12:30:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614688230.01.0.95196437469.issue40701@roundup.psfhosted.org>
In-reply-to
Content
> A process global that alters behavior of all calls into a module that don't explicitly opt-out is a bad API.

I don't think that it is so bad. The behavior depends on environment variables TMPDIR, TEMP, TMP. The tempdir variable is just a cache for them. As sys.path is a cache for PYTHONPATH. We need just document that it should be a string if not None. Nobody expects bytes paths be valid in sys.path.

On other hand, there is gettempdir(), so we have two different ways to get the value of tempfile.tempdir.
History
Date User Action Args
2021-03-02 12:30:30serhiy.storchakasetrecipients: + serhiy.storchaka, gregory.p.smith, python-dev, ericzolf
2021-03-02 12:30:30serhiy.storchakasetmessageid: <1614688230.01.0.95196437469.issue40701@roundup.psfhosted.org>
2021-03-02 12:30:30serhiy.storchakalinkissue40701 messages
2021-03-02 12:30:29serhiy.storchakacreate