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 rupole
Recipients rupole
Date 2014-07-30.12:40:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406724041.52.0.0365391579019.issue22107@psf.upfronthosting.co.za>
In-reply-to
Content
_mkstemp_inner assumes that an access denied error means that it
has generated a filename that matches an existing foldername.
However, in the case of a folder for which you don't have permissions to
create a file, this means it will loop thru the maximum possible number of files.
This causes it to hang for several seconds and eventually return a bogus
FileExistsError.

Similar behaviour exists in 2.7.7, but it throws an IOError instead.

http://bugs.python.org/issue18849 seems to be where this was introduced.
History
Date User Action Args
2014-07-30 12:40:41rupolesetrecipients: + rupole
2014-07-30 12:40:41rupolesetmessageid: <1406724041.52.0.0365391579019.issue22107@psf.upfronthosting.co.za>
2014-07-30 12:40:41rupolelinkissue22107 messages
2014-07-30 12:40:41rupolecreate