Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dfa46524
Commit
dfa46524
authored
May 21, 2012
by
Hynek Schlawack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14804: Remove [] around optional arguments with default values
parent
f54c0604
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
Doc/library/curses.rst
Doc/library/curses.rst
+1
-1
Doc/library/email.generator.rst
Doc/library/email.generator.rst
+1
-1
Doc/library/http.cookiejar.rst
Doc/library/http.cookiejar.rst
+1
-1
Doc/library/nis.rst
Doc/library/nis.rst
+3
-3
Doc/library/os.rst
Doc/library/os.rst
+1
-1
Doc/library/ossaudiodev.rst
Doc/library/ossaudiodev.rst
+1
-1
Doc/library/select.rst
Doc/library/select.rst
+2
-2
Doc/library/sqlite3.rst
Doc/library/sqlite3.rst
+1
-1
No files found.
Doc/library/curses.rst
View file @
dfa46524
...
@@ -1091,7 +1091,7 @@ the following methods:
...
@@ -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.
...
...
Doc/library/email.generator.rst
View file @
dfa46524
...
@@ -178,7 +178,7 @@ except that non-\ :mimetype:`text` parts are substituted with a format string
...
@@ -178,7 +178,7 @@ except that non-\ :mimetype:`text` parts are substituted with a format string
representing the part.
representing the part.
.. class:: DecodedGenerator(outfp
[
, mangle_from_=True, maxheaderlen=78, fmt=None)
.. class:: DecodedGenerator(outfp, mangle_from_=True, maxheaderlen=78, fmt=None)
This class, derived from :class:`Generator` walks through all the subparts of a
This class, derived from :class:`Generator` walks through all the subparts of a
message. If the subpart is of main type :mimetype:`text`, then it prints the
message. If the subpart is of main type :mimetype:`text`, then it prints the
...
...
Doc/library/http.cookiejar.rst
View file @
dfa46524
...
@@ -700,7 +700,7 @@ accessed using the following methods:
...
@@ -700,7 +700,7 @@ accessed using the following methods:
The :class:`Cookie` class also defines the following method:
The :class:`Cookie` class also defines the following method:
.. method:: Cookie.is_expired(
[now=None]
)
.. method:: Cookie.is_expired(
now=None
)
True if cookie has passed the time at which the server requested it should
True if cookie has passed the time at which the server requested it should
expire. If *now* is given (in seconds since the epoch), return whether the
expire. If *now* is given (in seconds since the epoch), return whether the
...
...
Doc/library/nis.rst
View file @
dfa46524
...
@@ -17,7 +17,7 @@ Because NIS exists only on Unix systems, this module is only available for Unix.
...
@@ -17,7 +17,7 @@ Because NIS exists only on Unix systems, this module is only available for Unix.
The :mod:`nis` module defines the following functions:
The :mod:`nis` module defines the following functions:
.. function:: match(key, mapname
[, domain=default_domain]
)
.. function:: match(key, mapname
, domain=default_domain
)
Return the match for *key* in map *mapname*, or raise an error
Return the match for *key* in map *mapname*, or raise an error
(:exc:`nis.error`) if there is none. Both should be strings, *key* is 8-bit
(:exc:`nis.error`) if there is none. Both should be strings, *key* is 8-bit
...
@@ -30,7 +30,7 @@ The :mod:`nis` module defines the following functions:
...
@@ -30,7 +30,7 @@ The :mod:`nis` module defines the following functions:
unspecified, lookup is in the default NIS domain.
unspecified, lookup is in the default NIS domain.
.. function:: cat(mapname
[, domain=default_domain]
)
.. function:: cat(mapname
, domain=default_domain
)
Return a dictionary mapping *key* to *value* such that ``match(key,
Return a dictionary mapping *key* to *value* such that ``match(key,
mapname)==value``. Note that both keys and values of the dictionary are
mapname)==value``. Note that both keys and values of the dictionary are
...
@@ -42,7 +42,7 @@ The :mod:`nis` module defines the following functions:
...
@@ -42,7 +42,7 @@ The :mod:`nis` module defines the following functions:
unspecified, lookup is in the default NIS domain.
unspecified, lookup is in the default NIS domain.
.. function:: maps(
[domain=default_domain]
)
.. function:: maps(
domain=default_domain
)
Return a list of all valid maps.
Return a list of all valid maps.
...
...
Doc/library/os.rst
View file @
dfa46524
...
@@ -1145,7 +1145,7 @@ Files and Directories
...
@@ -1145,7 +1145,7 @@ Files and Directories
Availability: Unix.
Availability: Unix.
.. function:: mknod(filename
[, mode=0o600[, device]]
)
.. 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
...
...
Doc/library/ossaudiodev.rst
View file @
dfa46524
...
@@ -277,7 +277,7 @@ The following convenience methods combine several ioctls, or one ioctl and some
...
@@ -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*
...
...
Doc/library/select.rst
View file @
dfa46524
...
@@ -181,7 +181,7 @@ Edge and Level Trigger Polling (epoll) Objects
...
@@ -181,7 +181,7 @@ Edge and Level Trigger Polling (epoll) Objects
Remove a registered file descriptor from the epoll object.
Remove a registered file descriptor from the epoll object.
.. method:: epoll.poll(
[timeout=-1[, maxevents=-1]]
)
.. method:: epoll.poll(
timeout=-1, maxevents=-1
)
Wait for events. timeout in seconds (float)
Wait for events. timeout in seconds (float)
...
@@ -285,7 +285,7 @@ Kqueue Objects
...
@@ -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
...
...
Doc/library/sqlite3.rst
View file @
dfa46524
...
@@ -514,7 +514,7 @@ Cursor Objects
...
@@ -514,7 +514,7 @@ Cursor Objects
or :const:`None` when no more data is available.
or :const:`None` when no more data is available.
.. method:: Cursor.fetchmany(
[size=cursor.arraysize]
)
.. method:: Cursor.fetchmany(
size=cursor.arraysize
)
Fetches the next set of rows of a query result, returning a list. An empty
Fetches the next set of rows of a query result, returning a list. An empty
list is returned when no more rows are available.
list is returned when no more rows are available.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment