diff options
author | Georg Brandl <georg@python.org> | 2008-06-10 12:46:39 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-06-10 12:46:39 (GMT) |
commit | 8550d69a84d05107bfffc6cd5c1e4d2e80ce24cb (patch) | |
tree | 9f30ecf39e6a80dd484850e9989c354e5c74797a /Modules | |
parent | 901c997de0ea941fe60e8b0671b126fec0c58cb9 (diff) | |
download | cpython-8550d69a84d05107bfffc6cd5c1e4d2e80ce24cb.zip cpython-8550d69a84d05107bfffc6cd5c1e4d2e80ce24cb.tar.gz cpython-8550d69a84d05107bfffc6cd5c1e4d2e80ce24cb.tar.bz2 |
#2536: fix itertools.permutations and itertools.combinations docstrings.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/itertoolsmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 261e8f1..18a1229 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2198,7 +2198,7 @@ empty: } PyDoc_STRVAR(combinations_doc, -"combinations(iterables) --> combinations object\n\ +"combinations(iterable[, r]) --> combinations object\n\ \n\ Return successive r-length combinations of elements in the iterable.\n\n\ combinations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)"); @@ -2469,10 +2469,10 @@ empty: } PyDoc_STRVAR(permutations_doc, -"permutations(iterables[, r]) --> permutations object\n\ +"permutations(iterable[, r]) --> permutations object\n\ \n\ Return successive r-length permutations of elements in the iterable.\n\n\ -permutations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)"); +permutations(range(3), 2) --> (0,1), (0,2), (1,0), (1,2), (2,0), (2,1)"); static PyTypeObject permutations_type = { PyVarObject_HEAD_INIT(NULL, 0) |