Skip to content

Commit 5cf3714

Browse files
author
georg.brandl
committed
#2536: fix itertools.permutations and itertools.combinations docstrings.
git-svn-id: http://svn.python.org/projects/python/trunk@64067 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent fc9c888 commit 5cf3714

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/itertoolsmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,7 @@ combinations_next(combinationsobject *co)
21982198
}
21992199

22002200
PyDoc_STRVAR(combinations_doc,
2201-
"combinations(iterables) --> combinations object\n\
2201+
"combinations(iterable[, r]) --> combinations object\n\
22022202
\n\
22032203
Return successive r-length combinations of elements in the iterable.\n\n\
22042204
combinations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)");
@@ -2469,10 +2469,10 @@ permutations_next(permutationsobject *po)
24692469
}
24702470

24712471
PyDoc_STRVAR(permutations_doc,
2472-
"permutations(iterables[, r]) --> permutations object\n\
2472+
"permutations(iterable[, r]) --> permutations object\n\
24732473
\n\
24742474
Return successive r-length permutations of elements in the iterable.\n\n\
2475-
permutations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)");
2475+
permutations(range(3), 2) --> (0,1), (0,2), (1,0), (1,2), (2,0), (2,1)");
24762476

24772477
static PyTypeObject permutations_type = {
24782478
PyVarObject_HEAD_INIT(NULL, 0)

0 commit comments

Comments
 (0)