mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Closes #18220: expand itertools.islice docstring to 2 lines
This commit is contained in:
parent
446a39f78f
commit
da30acf50b
1 changed files with 2 additions and 1 deletions
|
@ -1554,7 +1554,8 @@ static PyMethodDef islice_methods[] = {
|
|||
};
|
||||
|
||||
PyDoc_STRVAR(islice_doc,
|
||||
"islice(iterable, [start,] stop [, step]) --> islice object\n\
|
||||
"islice(iterable, stop) --> islice object\n\
|
||||
islice(iterable, start, stop[, step]) --> islice object\n\
|
||||
\n\
|
||||
Return an iterator whose next() method returns selected values from an\n\
|
||||
iterable. If start is specified, will skip all preceding elements;\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue