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 epicfaace
Recipients Anthony Sottile, alexia, epicfaace, georg.brandl, maurosr, ncoghlan, pitrou, r.david.murray, serhiy.storchaka
Date 2021-02-27.19:33:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614454413.91.0.90410476267.issue25024@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-02-27 19:33:33epicfaacesetrecipients: + epicfaace, georg.brandl, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, maurosr, Anthony Sottile, alexia
2021-02-27 19:33:33epicfaacesetmessageid: <1614454413.91.0.90410476267.issue25024@roundup.psfhosted.org>
2021-02-27 19:33:33epicfaacelinkissue25024 messages
2021-02-27 19:33:33epicfaacecreate