Message102648
| 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:39 | twhitema | set | recipients: + twhitema, georg.brandl |
| 2010-04-08 22:02:39 | twhitema | set | messageid: <1270764159.26.0.287104770145.issue8350@psf.upfronthosting.co.za> |
| 2010-04-08 22:02:36 | twhitema | link | issue8350 messages |
| 2010-04-08 22:02:36 | twhitema | create | |