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 ochedru
Recipients Birne94, Connor.Wolf, Giovanni.Bajo, Winterflower, bobbyi, dan.oreilly, davin, emptysquare, forest_atq, gregory.p.smith, ionelmc, jcea, lesha, neologix, nirai, nirs, ochedru, pitrou, sbt, sdaoden, tshepang, vinay.sajip, vstinner
Date 2018-04-05.13:53:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
FWIW, I encountered the same kind of issue when using the mkstemp() function: under the hood, it calls gettempdir() and this one is protected by a lock too.

Current thread 0x00007ff10231f700 (most recent call first):
   File "/usr/lib/python3.5/", line 432 in gettempdir
   File "/usr/lib/python3.5/", line 269 in _sanitize_params
   File "/usr/lib/python3.5/", line 474 in mkstemp
Date User Action Args
2018-04-05 13:53:20ochedrusetrecipients: + ochedru, gregory.p.smith, vinay.sajip, jcea, nirs, pitrou, vstinner, nirai, forest_atq, ionelmc, bobbyi, neologix, Giovanni.Bajo, sdaoden, tshepang, sbt, lesha, emptysquare, dan.oreilly, davin, Connor.Wolf, Winterflower, Birne94
2018-04-05 13:53:19ochedrusetmessageid: <>
2018-04-05 13:53:19ochedrulinkissue6721 messages
2018-04-05 13:53:19ochedrucreate