On Tue, Jul 18, 2017 at 01:55:15PM +0200, George Fischhof wrote: > Hi there, > > I used tempfile.TemporaryDirectory(). On first usage it was good, but on > second one there was a need to create tempopray directory and files in it a > given place. (It needed for a test). > > And I found that TemporaryDirectory() is not able to do this. So my idea is > to implement this behaviour with an addittional path parameter in it.
Guido's Time Machine strikes again. TemporaryDirectory takes a dir argument to set the location where the temporary directory is created. https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryDirectory As far as I can tell, this functionality has existed as far back as Python 2.3: https://docs.python.org/2/library/tempfile.html#tempfile.mkdtemp -- Steve _______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
