New submission from Todd Whiteman <twhit...@yahoo.com.au>: 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. ---------- assignee: georg.brandl components: Documentation messages: 102648 nosy: georg.brandl, twhitema severity: normal status: open title: os.mkdir doc comment is incorrect versions: Python 2.6, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8350> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com