Author epicfaace
Recipients Anthony Sottile, epicfaace, georg.brandl, maurosr, ncoghlan, nyuszika7h, pitrou, r.david.murray, serhiy.storchaka
Date 2021-02-27.19:33:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I agree -- as a user, it wasn't clear to me from looking at the documentation that mkdtemp was the right way to go to not delete directories. I had expected that NamedTemporaryDirectory would also support delete=False, just like NamedTemporaryFile.

Given that we say in the documentation that "mkstemp() and mkdtemp() are lower-level functions which require manual cleanup", it seems to make sense to allow Python users who don't care / know about mkstemp / mkdtemp to just use the more user-friendly NamedTemporaryDirectory / NamedTemporaryFile classes. This would make the language more accessible.

Would we be fine with reopening this issue so someone can contribute a patch?
Date User Action Args
2021-02-27 19:33:33epicfaacesetrecipients: + epicfaace, georg.brandl, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, maurosr, Anthony Sottile, nyuszika7h
2021-02-27 19:33:33epicfaacesetmessageid: <>
2021-02-27 19:33:33epicfaacelinkissue25024 messages
2021-02-27 19:33:33epicfaacecreate