summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-01-27 04:20:44 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-01-27 04:20:44 (GMT)
commitd07d939c5ee312905cce50bf885e62d60e4e4a33 (patch)
tree84a847adc4d386082180c400c0ebc859a55b0809 /Doc/library/collections.rst
parentdd1b33a2edcbc46155cb6809809541f5d9f1b428 (diff)
downloadcpython-d07d939c5ee312905cce50bf885e62d60e4e4a33.zip
cpython-d07d939c5ee312905cce50bf885e62d60e4e4a33.tar.gz
cpython-d07d939c5ee312905cce50bf885e62d60e4e4a33.tar.bz2
Forward port r69001: itertools.combinations_with_replacement().
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 169293f..0503ad29c 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -279,8 +279,7 @@ counts less than one::
Section 4.6.3, Exercise 19*\.
* To enumerate all distinct multisets of a given size over a given set of
- elements, see :func:`combinations_with_replacement` in the
- :ref:`itertools-recipes` for itertools::
+ elements, see :func:`itertools.combinations_with_replacement`.
map(Counter, combinations_with_replacement('ABC', 2)) --> AA AB AC BB BC CC