[Python-Dev] mkdir -p in python (original) (raw)
岳帅杰 ysj.ray+python at gmail.com
Tue Jul 20 10:49:44 CEST 2010
- Previous message: [Python-Dev] mkdir -p in python
- Next message: [Python-Dev] mkdir -p in python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: [Python-Dev] mkdir -p in python
- Next message: [Python-Dev] mkdir -p in python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]