Author serhiy.storchaka
Recipients Anthony Sottile, georg.brandl, maurosr, ncoghlan, pitrou, r.david.murray, serhiy.storchaka
Date 2020-03-26.19:32:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585251131.89.0.686902912058.issue25024@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-03-26 19:32:11serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, ncoghlan, pitrou, r.david.murray, maurosr, Anthony Sottile
2020-03-26 19:32:11serhiy.storchakasetmessageid: <1585251131.89.0.686902912058.issue25024@roundup.psfhosted.org>
2020-03-26 19:32:11serhiy.storchakalinkissue25024 messages
2020-03-26 19:32:11serhiy.storchakacreate