[issue20267] TemporaryDirectory does not resolve path when created using a relative path

Antony Lee report at bugs.python.org
Sun Oct 5 02:20:00 CEST 2014


Antony Lee added the comment:

The change would be backwards-incompatible but also mimics the behavior of NamedTemporaryFile (which also fails to delete the file if the containing folder has been renamed -- this is easy to verify manually).
I guess the other option would be to use fd-based semantics?  (but it'd be preferable if the behavior was kept the same between TemporaryDirectory and NamedTemporaryFile).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20267>
_______________________________________


More information about the Python-bugs-list mailing list