This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Arfrever, draghuram, eric.araujo, ggenellina, giampaolo.rodola, gvanrossum, ijmorlan, terry.reedy, ysj.ray, zooko
Date 2010-07-21.21:04:38
SpamBayes Score 0.006316697
Marked as misclassified No
Message-id <1279746280.48.0.285615934804.issue9299@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-21 21:04:40terry.reedysetrecipients: + terry.reedy, gvanrossum, zooko, ggenellina, draghuram, giampaolo.rodola, ijmorlan, eric.araujo, Arfrever, ysj.ray
2010-07-21 21:04:40terry.reedysetmessageid: <1279746280.48.0.285615934804.issue9299@psf.upfronthosting.co.za>
2010-07-21 21:04:38terry.reedylinkissue9299 messages
2010-07-21 21:04:38terry.reedycreate