[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread R. David Murray
R. David Murray added the comment: Note that the implementation of makedirs exist_ok has a significant bug (issue 13498) which renders it mostly useless in practice. Parties interested in this issue might be interested in figuring out how to fix that bug :) -- nosy: +r.david.murray

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree that this is already covered by the exist_ok parameter (which is new to 3.2). Existing code just hasn't been ported to this API. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread Hynek Schlawack
Hynek Schlawack 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 han

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- title: Add option to os.makefile to not raise an exception for existing directories -> Add option to os.mkdir to not raise an exception for existing directories ___ Python tracker