Hynek Schlawack <h...@ox.cx> added the comment: I looked into the code. Assuming it should be added, we're facing the fact that os.mkdir() is C code ATM and the handling of the error would require to implement it for NT and Unix separately.
Therefore it would make sense to add a Python os.mkdir() that handles this (basically try: _mkdir(dirname) except FileExistsError: pass) and make the C implementation private. OTOH you could argue that if you just want to ensure that that a directory exists, you could just as well use os.makedirs() with exists_ok so I'm kind of -0 on the whole thing. ---------- assignee: hynek -> nosy: +loewis _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15084> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com