Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
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. ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25024> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com