summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-05-13 09:48:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-05-13 09:48:21 (GMT)
commit46cf02d25aeab175e70c087a53d10a47dc5df203 (patch)
tree2c5f3814a168cb7a854a462515625dd6dd422428 /Doc/library
parent0907a45eb16724e0d4f0e742190dbcf7687b047f (diff)
parenta3780259e4ca668109a86054696002bc1b2700ce (diff)
downloadcpython-46cf02d25aeab175e70c087a53d10a47dc5df203.zip
cpython-46cf02d25aeab175e70c087a53d10a47dc5df203.tar.gz
cpython-46cf02d25aeab175e70c087a53d10a47dc5df203.tar.bz2
merge
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/collections.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index e27774c..d875c49 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -268,9 +268,9 @@ For example::
.. method:: most_common([n])
Return a list of the *n* most common elements and their counts from the
- most common to the least. If *n* is not specified, :func:`most_common`
- returns *all* elements in the counter. Elements with equal counts are
- ordered arbitrarily:
+ most common to the least. If *n* is omitted or ``None``,
+ :func:`most_common` returns *all* elements in the counter. Elements
+ with equal counts are ordered arbitrarily:
>>> Counter('abracadabra').most_common(3)
[('a', 5), ('r', 2), ('b', 2)]