[Python-Dev] mkdir -p in python

岳帅杰 ysj.ray+python at gmail.com
Tue Jul 20 10:49:44 CEST 2010


Sorry, I don't know what is the "no constant arguments" guideline refers to.
Could you give me some more explanation?

By the way, I feel adding separate functions is not quiet worthy for such a
function.

On Tue, Jul 20, 2010 at 7:11 AM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:

> Ray Allen wrote:
>
>  I think both os.mkdir() and os.makedirs() should add a keyword argument to
>> suppress the "OSError: [Errno 17] File exists".
>>
>
> This could be seen as violating the "no constant arguments"
> guideline. Maybe separate function would be better?
>
>
> --
> Greg
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/ysj.ray%2Bpython-dev%40gmail.com
>



-- 
Ray Allen
Best wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100720/3f4d506c/attachment.html>


More information about the Python-Dev mailing list