On Tue, Jul 20, 2010 at 11:35 PM, Cameron Simpson <c...@zip.com.au> wrote:
> On 20Jul2010 17:49, Michael Foord <fuzzy...@voidspace.org.uk> wrote:
> | On 20/07/2010 14:43, Nick Coghlan wrote:
> | >On Tue, Jul 20, 2010 at 11:09 PM, Steven D'Aprano<st...@pearwood.info>  
> wrote:
> | >>I'm -0 on adding an argument to os.makedirs, +0 on adding a variant
> | >>function to os, and +0.5 on adding the variant to the shutil module.
> | >shutil seems like the place for it to me. The subtlety of getting the
> | >error suppression correct makes it worth implementing this once and
> | >for all I think.
> |
> | Really - so we have two almost identical functions with slightly
> | different behaviour in different standard library modules?
>
> Three if you count os.mkdir itself as well.
>
> | Aren't
> | the Python APIs for working with files and paths confused enough
> | already. That seems crazy to me and a switch on os.makedirs much
> | more sensible.
>
> +1 from me. Hasn't the BDFL blessed this particular suggestion too?

Now I have. :-) -1 on a new function (despite the constant-argument
guideline) and +1 on a flag. If it weren't for backwards compatibility
I'd just change os.makedirs() to act like mkdir -p period, but the
last opportunity we had for that was Python 3.0.

-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to