Message387785
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:33 | epicfaace | set | recipients:
+ epicfaace, georg.brandl, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, maurosr, Anthony Sottile, alexia |
| 2021-02-27 19:33:33 | epicfaace | set | messageid: <[email protected]> |
| 2021-02-27 19:33:33 | epicfaace | link | issue25024 messages |
| 2021-02-27 19:33:33 | epicfaace | create | |
|