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
37d2fe00
Commit
37d2fe00
authored
Oct 24, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some py3k doc nits
parent
a933e520
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/library/itertools.rst
Doc/library/itertools.rst
+5
-5
Doc/library/multiprocessing.rst
Doc/library/multiprocessing.rst
+3
-3
No files found.
Doc/library/itertools.rst
View file @
37d2fe00
...
...
@@ -295,10 +295,10 @@ loops that truncate the stream.
except IndexError:
pass
If one of the iterables is potentially infinite, then the
:func:`izip_longest` function should be wrapped with something that limit
s
the number of calls (for example :func:`islice` or :func:`takewhile`). If
not specified,
*fillvalue* defaults to ``None``.
If one of the iterables is potentially infinite, then the
:func:`zip_longest`
function should be wrapped with something that limits the number of call
s
(for example :func:`islice` or :func:`takewhile`). If not specified,
*fillvalue* defaults to ``None``.
.. function:: permutations(iterable[, r])
...
...
@@ -590,7 +590,7 @@ which incur interpreter overhead.
def compress(data, selectors):
"compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F"
return (d for d, s in
i
zip(data, selectors) if s)
return (d for d, s in zip(data, selectors) if s)
def combinations_with_replacement(iterable, r):
"combinations_with_replacement('ABC', 3) --> AA AB AC BB BC CC"
...
...
Doc/library/multiprocessing.rst
View file @
37d2fe00
...
...
@@ -1433,8 +1433,8 @@ with the :class:`Pool` class.
..
method
::
apply
(
func
[,
args
[,
kwds
]])
Equivalent
of
the
:
func
:`
apply
`
builtin
function
.
It
blocks
till
the
result
is
ready
.
Call
*
func
*
with
arguments
*
args
*
and
keyword
arguments
*
kwds
*.
It
blocks
till
the
result
is
ready
.
..
method
::
apply_async
(
func
[,
args
[,
kwds
[,
callback
]]])
...
...
@@ -1465,7 +1465,7 @@ with the :class:`Pool` class.
..
method
::
imap
(
func
,
iterable
[,
chunksize
])
An
equivalent
of
:
func
:`
itertools
.
i
map
`.
An
lazier
version
of
:
meth
:`
map
`.
The
*
chunksize
*
argument
is
the
same
as
the
one
used
by
the
:
meth
:`.
map
`
method
.
For
very
long
iterables
using
a
large
value
for
*
chunksize
*
can
...
...
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