Message264779
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. |
|
Date |
User |
Action |
Args |
2016-05-04 05:24:35 | Billy McCulloch | set | recipients:
+ 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:35 | Billy McCulloch | set | messageid: <1462339475.28.0.786819131884.issue22107@psf.upfronthosting.co.za> |
2016-05-04 05:24:35 | Billy McCulloch | link | issue22107 messages |
2016-05-04 05:24:34 | Billy McCulloch | create | |
|