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 JDM
Recipients Billy McCulloch, JDM, Paul Doom, eryksun, georg.brandl, ncoghlan, paul.moore, python-dev, rocco.matano, rupole, serhiy.storchaka, steve.dower, takluyver, tim.golden, zach.ware
Date 2019-03-12.11:57:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552391834.71.0.419706518234.issue22107@roundup.psfhosted.org>
In-reply-to
Content
This issue persists as of today (March 2019), in Python 3.7.2 (64 bit) running on Windows 10.  I gather from the comments that fixing it is no trivial matter, although I don't fully understand why.  The hang of "several seconds" that was originally described is at least 30 seconds on that platform -- I'm not sure when it would clear, as I didn't have the patience to wait it out.

https://stackoverflow.com/questions/55109076/python-tempfile-temporaryfile-hangs-on-windows-when-no-write-privilege

It seems to me that a genuine naming collision would be pretty rare -- at least for the (fairly common) use case I'm dealing with, trying to check where the directory is writeable or not.  Would it make sense to at least set a default number of collision-retries that is significantly lower?  Say, between 3 and 10, instead of the system max?
History
Date User Action Args
2019-03-12 11:57:14JDMsetrecipients: + JDM, georg.brandl, paul.moore, ncoghlan, rupole, tim.golden, python-dev, takluyver, zach.ware, serhiy.storchaka, eryksun, steve.dower, rocco.matano, Billy McCulloch, Paul Doom
2019-03-12 11:57:14JDMsetmessageid: <1552391834.71.0.419706518234.issue22107@roundup.psfhosted.org>
2019-03-12 11:57:14JDMlinkissue22107 messages
2019-03-12 11:57:14JDMcreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.