Message264779
| 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: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 |
|