[Python-checkins] cpython (3.4): Issue #19934: Document *None* as an acceptable input to

raymond.hettinger python-checkins at python.org
Wed May 13 11:48:27 CEST 2015


https://hg.python.org/cpython/rev/8440dda28ffe
changeset:   96016:8440dda28ffe
branch:      3.4
parent:      95996:4e62311e1eb1
user:        Raymond Hettinger <python at rcn.com>
date:        Wed May 13 02:47:57 2015 -0700
summary:
  Issue #19934:  Document *None* as an acceptable input to Counter.most_common([n])

files:
  Doc/library/collections.rst |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -268,9 +268,9 @@
     .. 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)]

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list