Message250158
I would like to suggest allowing passing "delete=False" to the TemporaryDirectory constructor, with the effect that the directory is not deleted when the TemporaryDirectory context manager exits, or when the TemporaryDirectory object is deleted.
I realize that this would effectively duplicate the functionality of mkdtemp, but this is similar to the redundancy between NamedTemporaryFile(delete=False) and mkstemp, and would make it easier to switch between the two behaviors (which is useful e.g. when debugging, where you may need to look at the temporary files "post-mortem"). |
|
Date |
User |
Action |
Args |
2015-09-08 05:36:20 | Antony.Lee | set | recipients:
+ Antony.Lee |
2015-09-08 05:36:20 | Antony.Lee | set | messageid: <1441690580.39.0.270846340544.issue25024@psf.upfronthosting.co.za> |
2015-09-08 05:36:20 | Antony.Lee | link | issue25024 messages |
2015-09-08 05:36:19 | Antony.Lee | create | |
|