mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Restore [] where default arguments are not keywords
Reverts some changes of d13fdd97cc8e.
This commit is contained in:
parent
898d51da4d
commit
979f37afd2
4 changed files with 4 additions and 4 deletions
|
@ -1091,7 +1091,7 @@ the following methods:
|
||||||
rendition (as set by :meth:`bkgdset`) merged into them.
|
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.
|
Scroll the screen or scrolling region upward by *lines* lines.
|
||||||
|
|
||||||
|
|
|
@ -1145,7 +1145,7 @@ Files and Directories
|
||||||
Availability: Unix.
|
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
|
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
|
*filename*. *mode* specifies both the permissions to use and the type of node
|
||||||
|
|
|
@ -277,7 +277,7 @@ The following convenience methods combine several ioctls, or one ioctl and some
|
||||||
simple calculations.
|
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
|
Set the key audio sampling parameters---sample format, number of channels, and
|
||||||
sampling rate---in one method call. *format*, *nchannels*, and *samplerate*
|
sampling rate---in one method call. *format*, *nchannels*, and *samplerate*
|
||||||
|
|
|
@ -285,7 +285,7 @@ Kqueue Objects
|
||||||
Create a kqueue object from a given file descriptor.
|
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
|
Low level interface to kevent
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue