[Python-checkins] r64067 - python/trunk/Modules/itertoolsmodule.c
georg.brandl
python-checkins at python.org
Tue Jun 10 14:46:39 CEST 2008
Author: georg.brandl
Date: Tue Jun 10 14:46:39 2008
New Revision: 64067
Log:
#2536: fix itertools.permutations and itertools.combinations docstrings.
Modified:
python/trunk/Modules/itertoolsmodule.c
Modified: python/trunk/Modules/itertoolsmodule.c
==============================================================================
--- python/trunk/Modules/itertoolsmodule.c (original)
+++ python/trunk/Modules/itertoolsmodule.c Tue Jun 10 14:46:39 2008
@@ -2198,7 +2198,7 @@
}
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 @@
}
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)
More information about the Python-checkins
mailing list