summaryrefslogtreecommitdiffstats
path: root/Doc/library/itertools.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-11-19 01:22:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-11-19 01:22:04 (GMT)
commit9eac119ba8f9fd6d76b75689baaa656a979cc260 (patch)
tree601bce2ff8536ec5fb2c1b7d176159f61918f10b /Doc/library/itertools.rst
parent79628d311f3a3fcace6b08387d3d402262790bee (diff)
downloadcpython-9eac119ba8f9fd6d76b75689baaa656a979cc260.zip
cpython-9eac119ba8f9fd6d76b75689baaa656a979cc260.tar.gz
cpython-9eac119ba8f9fd6d76b75689baaa656a979cc260.tar.bz2
Fix docstrings for itertools combinatoric functions.
Diffstat (limited to 'Doc/library/itertools.rst')
-rw-r--r--Doc/library/itertools.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index eb6306f..f8d9d26 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -71,8 +71,8 @@ Iterator Arguments Resu
============================================== ==================== =============================================================
:func:`product` p, q, ... [repeat=1] cartesian product, equivalent to a nested for-loop
:func:`permutations` p[, r] r-length tuples, all possible orderings, no repeated elements
-:func:`combinations` p[, r] r-length tuples, in sorted order, no repeated elements
-:func:`combinations_with_replacement` p[, r] r-length tuples, in sorted order, with repeated elements
+:func:`combinations` p, r r-length tuples, in sorted order, no repeated elements
+:func:`combinations_with_replacement` p, r r-length tuples, in sorted order, with repeated elements
|
``product('ABCD', repeat=2)`` ``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``
``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA CB CD DA DB DC``