Message111120
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. |
|
Date |
User |
Action |
Args |
2010-07-21 21:04:40 | terry.reedy | set | recipients:
+ terry.reedy, gvanrossum, zooko, ggenellina, draghuram, giampaolo.rodola, ijmorlan, eric.araujo, Arfrever, ysj.ray |
2010-07-21 21:04:40 | terry.reedy | set | messageid: <1279746280.48.0.285615934804.issue9299@psf.upfronthosting.co.za> |
2010-07-21 21:04:38 | terry.reedy | link | issue9299 messages |
2010-07-21 21:04:38 | terry.reedy | create | |
|