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.753e-13
Marked as misclassified No
Message-id <>
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(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(path [, mode])
    Create a directory. Mode defaults to 0777 if not specified.
Date User Action Args
2010-04-08 22:02:39twhitemasetrecipients: + twhitema, georg.brandl
2010-04-08 22:02:39twhitemasetmessageid: <>
2010-04-08 22:02:36twhitemalinkissue8350 messages
2010-04-08 22:02:36twhitemacreate