Message387922
> 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. |
|
Date |
User |
Action |
Args |
2021-03-02 12:30:30 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gregory.p.smith, python-dev, ericzolf |
2021-03-02 12:30:30 | serhiy.storchaka | set | messageid: <1614688230.01.0.95196437469.issue40701@roundup.psfhosted.org> |
2021-03-02 12:30:30 | serhiy.storchaka | link | issue40701 messages |
2021-03-02 12:30:29 | serhiy.storchaka | create | |
|