[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.
Ray.Allen
report at bugs.python.org
Thu Jul 22 07:34:39 CEST 2010
Ray.Allen <ysj.ray at gmail.com> added the comment:
Agree! Sure, the functions in os are mainly to simulate the system call but not the system command. This seems like a good suggestion.
So here is the new patch which leave posixmodule.c alone and just wrappers os.mkdir() with try...except... in os.makedirs().
----------
Added file: http://bugs.python.org/file18120/mkdir_py3k.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9299>
_______________________________________
More information about the Python-bugs-list
mailing list