diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-22 14:14:56 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-22 14:14:56 (GMT) |
commit | f0bf135cd14fe2abe212d2220af811b42ad75a57 (patch) | |
tree | 2a0ec8a42c1a29865d21929937df9c97d707d389 /Doc/library | |
parent | 161ea6a349d7b6720a19708aeceec98ae03770d1 (diff) | |
parent | 979f37afd2b7ccd77f2d43e68a1d596befa58bcd (diff) | |
download | cpython-f0bf135cd14fe2abe212d2220af811b42ad75a57.zip cpython-f0bf135cd14fe2abe212d2220af811b42ad75a57.tar.gz cpython-f0bf135cd14fe2abe212d2220af811b42ad75a57.tar.bz2 |
Restore [] where default arguments are not keywords
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/curses.rst | 2 | ||||
-rw-r--r-- | Doc/library/os.rst | 2 | ||||
-rw-r--r-- | Doc/library/ossaudiodev.rst | 2 | ||||
-rw-r--r-- | Doc/library/select.rst | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 2ee46f4..ff3a793 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -1120,7 +1120,7 @@ the following methods and attributes: rendition (as set by :meth:`bkgdset`) merged into them. -.. method:: window.scroll(lines=1) +.. method:: window.scroll([lines=1]) Scroll the screen or scrolling region upward by *lines* lines. diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 4445dc3..8cc43c5 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1786,7 +1786,7 @@ Files and Directories Availability: Unix. -.. function:: mknod(filename, mode=0o600, device=0) +.. function:: mknod(filename[, mode=0o600[, 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 diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst index d9e3eae..9e5bec9 100644 --- a/Doc/library/ossaudiodev.rst +++ b/Doc/library/ossaudiodev.rst @@ -281,7 +281,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* diff --git a/Doc/library/select.rst b/Doc/library/select.rst index eb85643..0e667fe 100644 --- a/Doc/library/select.rst +++ b/Doc/library/select.rst @@ -371,7 +371,7 @@ Kqueue Objects Create a kqueue object from a given file descriptor. -.. method:: kqueue.control(changelist, max_events, timeout=None) -> eventlist +.. method:: kqueue.control(changelist, max_events[, timeout=None]) -> eventlist Low level interface to kevent |