This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Adam Dangoor
Recipients Adam Dangoor
Date 2017-11-06.12:05:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509969951.64.0.213398074469.issue31959@psf.upfronthosting.co.za>
In-reply-to
Content
Sample code:

```
import os
from tempfile import TemporaryDirectory

name = TemporaryDirectory().name
print(os.path.exists(name))  # prints False

td = TemporaryDirectory()
name_2 = td.name
print(os.path.exists(name_2))  # prints True
```

Expected behavior: `True` is printed for both print statements.

I have run this example on:

* CPython 3.6.3
* CPython 3.5.3
* pypy 3.5.3

The unexpected behavior occurs on CPython 3.5.3 and CPython 3.6.X but not on pypy.

(bug found with Tim Weidner https://github.com/timaa2k).
History
Date User Action Args
2017-11-06 12:05:51Adam Dangoorsetrecipients: + Adam Dangoor
2017-11-06 12:05:51Adam Dangoorsetmessageid: <1509969951.64.0.213398074469.issue31959@psf.upfronthosting.co.za>
2017-11-06 12:05:51Adam Dangoorlinkissue31959 messages
2017-11-06 12:05:51Adam Dangoorcreate