Message365109
Well, then I think there is nothing to do this.
Compatibility with context manager protocol is not a goal if it does nothing on exit. In any case you can easy to make it in three lines:
@contextmanager
def mymkdtemp():
yield mkdtemp()
NamedTemporaryFile is more complex than mkstemp(). It creates a file object and closes a file descriptor even if leave the file on the filesystem. |
|
Date |
User |
Action |
Args |
2020-03-26 19:32:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, ncoghlan, pitrou, r.david.murray, maurosr, Anthony Sottile |
2020-03-26 19:32:11 | serhiy.storchaka | set | messageid: <1585251131.89.0.686902912058.issue25024@roundup.psfhosted.org> |
2020-03-26 19:32:11 | serhiy.storchaka | link | issue25024 messages |
2020-03-26 19:32:11 | serhiy.storchaka | create | |
|