[issue5178] Add context manager for temporary directory
Neil Schemenauer
report at bugs.python.org
Sat Feb 14 07:39:49 CET 2009
Neil Schemenauer <nas-python at arctrix.com> added the comment:
New version of the patch. Added a __del__ method that hopefully works
reliably. Added NEWS and an example of TemporaryFile as a context
manager. I did not change more tests to use TemporaryDirectory since I
understand hit-and-run modernization of code is generally discouraged.
That said, I think there are some tests that could have their
reliability improved by using TemporaryDirectory (I started on this
patch when I saw some build bot failures). I'll look into that later.
Added file: http://bugs.python.org/file13080/tempdir2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5178>
_______________________________________
More information about the Python-bugs-list
mailing list