summaryrefslogtreecommitdiffstats
path: root/Doc/library/itertools.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-11-19 01:20:07 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-11-19 01:20:07 (GMT)
commit36c3c027adcc4e92f189edadb5e36f621c3cdf8f (patch)
tree769062d24a559d7e3788dd0ffbd9e3efe619324f /Doc/library/itertools.rst
parenta7da1663ecf9a881970b096a6dd0494584d0f795 (diff)
downloadcpython-36c3c027adcc4e92f189edadb5e36f621c3cdf8f.zip
cpython-36c3c027adcc4e92f189edadb5e36f621c3cdf8f.tar.gz
cpython-36c3c027adcc4e92f189edadb5e36f621c3cdf8f.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 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``