Mercurial > cpython-lru_cache-weakref
diff Modules/itertoolsmodule.c @ 57344:a790f84fbafa 3.1
Fix docstrings for itertools combinatoric functions.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Thu, 19 Nov 2009 01:23:41 +0000 |
| parents | 658eb58d2e68 |
| children | 0a6137944e61 |
line wrap: on
line diff
--- a/Modules/itertoolsmodule.c Thu Nov 19 01:02:56 2009 +0000 +++ b/Modules/itertoolsmodule.c Thu Nov 19 01:23:41 2009 +0000 @@ -2017,7 +2017,7 @@ } PyDoc_STRVAR(combinations_doc, -"combinations(iterable[, r]) --> 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)"); @@ -2262,7 +2262,7 @@ } PyDoc_STRVAR(cwr_doc, -"combinations_with_replacement(iterable[, r]) --> combinations_with_replacement object\n\ +"combinations_with_replacement(iterable, r) --> combinations_with_replacement object\n\ \n\ Return successive r-length combinations of elements in the iterable\n\ allowing individual elements to have successive repeats.\n\ @@ -3494,8 +3494,8 @@ Combinatoric generators:\n\ product(p, q, ... [repeat=1]) --> cartesian product\n\ permutations(p[, r])\n\ -combinations(p[, r])\n\ -combinations_with_replacement(p[, r])\n\ +combinations(p, r)\n\ +combinations_with_replacement(p, r)\n\ ");
