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 Billy McCulloch
Recipients Billy McCulloch, eryksun, georg.brandl, ncoghlan, paul.moore, python-dev, rupole, serhiy.storchaka, steve.dower, takluyver, tim.golden, zach.ware
Date 2016-05-04.05:24:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462339475.28.0.786819131884.issue22107@psf.upfronthosting.co.za>
In-reply-to
Content
I've also run into this bug on Windows. In my case, the tempdir path includes directories on a network share, which I lack write access permissions to. Python tries to generate a *lot* of files, and never figures out it should move on to another directory. The attached patch for tempdir.py resolves my issue.

In _get_default_tempdir() and _mkstemp_inner(), you want to know if the filename you tried to create already exists as a directory, not whether the parent directory is a directory – that's handled in _get_default_tempdir().

In mkdtemp(), attempting to create a directory with the same name as an existing directory does not throw a PermissionError, so the code is superfluous.
History
Date User Action Args
2016-05-04 05:24:35Billy McCullochsetrecipients: + Billy McCulloch, georg.brandl, paul.moore, ncoghlan, rupole, tim.golden, python-dev, takluyver, zach.ware, serhiy.storchaka, eryksun, steve.dower
2016-05-04 05:24:35Billy McCullochsetmessageid: <1462339475.28.0.786819131884.issue22107@psf.upfronthosting.co.za>
2016-05-04 05:24:35Billy McCullochlinkissue22107 messages
2016-05-04 05:24:34Billy McCullochcreate