summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-11-19 01:23:41 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-11-19 01:23:41 (GMT)
commitd3a77c0ad3d933f9ce6f3e8e6c983bfb47e89b8e (patch)
treef680460e1ef7cb86afb205cb6f10894413fc2f3c /Doc/library
parentb868e63443d86d9016679b6451fd143717ab6de7 (diff)
downloadcpython-d3a77c0ad3d933f9ce6f3e8e6c983bfb47e89b8e.zip
cpython-d3a77c0ad3d933f9ce6f3e8e6c983bfb47e89b8e.tar.gz
cpython-d3a77c0ad3d933f9ce6f3e8e6c983bfb47e89b8e.tar.bz2
Fix docstrings for itertools combinatoric functions.
Diffstat (limited to 'Doc/library')
-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 c1f8d9a..3003552 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -65,8 +65,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``