Martin Panter added the comment: Daniel: your latest suggestions look like they introduce a race condition. What happens if another thread or process, perhaps also calling makedirs(), creates the directory just after isdir() says it doesn’t exist? Similar to Issue 1608579.
Perhaps the existing code comment needs to clarify that the exception handling is for a real race condition, not just an excuse to “be happy” :) ---------- components: +Windows nosy: +martin.panter, paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch versions: -Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25583> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com