This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twhitema
Recipients georg.brandl, twhitema
Date 2010-04-08.22:02:36
SpamBayes Score 8.7529983e-13
Marked as misclassified No
Message-id <1270764159.26.0.287104770145.issue8350@psf.upfronthosting.co.za>
In-reply-to
Content
The doc command for os.mkdir is incorrect (at least for posix). It specifies that there is an optional mode keyword, but it's not a keyword argument, see below:

>>> import os
>>> help(os.mkdir)
mkdir(...)
    mkdir(path [, mode=0777])
    
    Create a directory.

>>> os.mkdir("/tmp/1", mode=777) 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: mkdir() takes no keyword arguments


Suggest the following doc comment change:

mkdir(...)
    mkdir(path [, mode])
    
    Create a directory. Mode defaults to 0777 if not specified.
History
Date User Action Args
2010-04-08 22:02:39twhitemasetrecipients: + twhitema, georg.brandl
2010-04-08 22:02:39twhitemasetmessageid: <1270764159.26.0.287104770145.issue8350@psf.upfronthosting.co.za>
2010-04-08 22:02:36twhitemalinkissue8350 messages
2010-04-08 22:02:36twhitemacreate