A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/102104.html below:

[Python-Dev] mkdir -p in python

[Python-Dev] mkdir -p in python [Python-Dev] mkdir -p in pythonMichael Foord fuzzyman at voidspace.org.uk
Tue Jul 20 18:49:58 CEST 2010
On 20/07/2010 14:43, Nick Coghlan wrote:
> On Tue, Jul 20, 2010 at 11:09 PM, Steven D'Aprano<steve at 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? 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.

Michael
> Cheers,
> Nick.
>
>
>    


-- 
http://www.ironpythoninaction.com/

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4