[Python-Dev] Why does TemporaryDirectory not wait for `__enter__`?
cool-RR
cool-rr at cool-rr.com
Sat Feb 26 13:52:34 CET 2011
Hello,
I noticed that the `TemporaryDirectory` context manager creates the folder
on `__init__` rather than on `__enter__`, resulting in complexity, bugs, and
hackarounds in `__del__`. I assume there's a good reason for this decision.
What is it?
Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110226/04010e8d/attachment.html>
More information about the Python-Dev
mailing list