diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-22 13:22:14 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-22 13:22:14 (GMT) |
commit | d68ffdb45a97eabbe54e8499828db63d5faa07e9 (patch) | |
tree | 70c314bcb4694f24fc1463e34bc0515540bdb1d8 /Doc | |
parent | e58ce01f303c8e0a7ddf008abc365cfe6fb4416c (diff) | |
download | cpython-d68ffdb45a97eabbe54e8499828db63d5faa07e9.zip cpython-d68ffdb45a97eabbe54e8499828db63d5faa07e9.tar.gz cpython-d68ffdb45a97eabbe54e8499828db63d5faa07e9.tar.bz2 |
Restore [] where default arguments are not keywords
Reverts some changes of a36666c52115.
In the case of os's `mknod(filename[, mode=0600[, device=0]])`, I have nested
the [] as setting mode doesn't require to set device (but setting device
requires to set mode).
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/dl.rst | 2 | ||||
-rw-r--r-- | Doc/library/itertools.rst | 2 | ||||
-rw-r--r-- | Doc/library/os.rst | 2 | ||||
-rw-r--r-- | Doc/library/ossaudiodev.rst | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/dl.rst b/Doc/library/dl.rst index 92de1dc..40556cc 100644 --- a/Doc/library/dl.rst +++ b/Doc/library/dl.rst @@ -31,7 +31,7 @@ libraries. It allows the program to call arbitrary functions in such a library. The :mod:`dl` module defines the following function: -.. function:: open(name, mode=RTLD_LAZY) +.. function:: open(name[, mode=RTLD_LAZY]) Open a shared object file, and return a handle. Mode signifies late binding (:const:`RTLD_LAZY`) or immediate binding (:const:`RTLD_NOW`). Default is diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 477ea86..a553d09 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -627,7 +627,7 @@ loops that truncate the stream. break -.. function:: tee(iterable, n=2) +.. function:: tee(iterable[, n=2]) Return *n* independent iterators from a single iterable. Equivalent to:: diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 8569f82..025042a 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1181,7 +1181,7 @@ Files and Directories doesn't open the FIFO --- it just creates the rendezvous point. -.. function:: mknod(filename, mode=0600, device=0) +.. function:: mknod(filename[, mode=0600[, device=0]]) Create a filesystem node (file, device special file or named pipe) named *filename*. *mode* specifies both the permissions to use and the type of node to diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst index 515c701..08f118f 100644 --- a/Doc/library/ossaudiodev.rst +++ b/Doc/library/ossaudiodev.rst @@ -275,7 +275,7 @@ The following convenience methods combine several ioctls, or one ioctl and some simple calculations. -.. method:: oss_audio_device.setparameters(format, nchannels, samplerate, strict=False) +.. method:: oss_audio_device.setparameters(format, nchannels, samplerate[, strict=False]) Set the key audio sampling parameters---sample format, number of channels, and sampling rate---in one method call. *format*, *nchannels*, and *samplerate* |