Terry J. Reedy <tjre...@udel.edu> added the comment:

Guido: "Hm. I wonder if os.mkdir() should not be left alone (so as to continue 
to match the system call most exactly, as is our convention) and the extra 
functionality added to os.makedirs() only."

Sticking with that convention seems like a good idea. That would imply wrapping 
the mkdir call within makedirs as something like

try:
  mkdir(...)
except (<errs to be caught>:
  if not exist_ok:
    raise

mkdir could be changed in the future but not unchanged once changed.

Ray, can you make a simplified patch that leaves posixmodule.c alone, and make 
sure it passes the old and new tests? I am 99% sure some version will be 
applied for 3.2.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to