Roundup Robot added the comment:
New changeset 8440dda28ffe by Raymond Hettinger in branch '3.4':
Issue #19934: Document *None* as an acceptable input to
Counter.most_common([n])
https://hg.python.org/cpython/rev/8440dda28ffe
--
nosy: +python-dev
Raymond Hettinger added the comment:
Thanks for pointing out the omission.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19934
___
Roundup Robot added the comment:
New changeset df708898f27b by Raymond Hettinger in branch '2.7':
Issue #19934: Document *None* as an acceptable input to
Counter.most_common([n])
https://hg.python.org/cpython/rev/df708898f27b
--
___
Python tracker
Roundup Robot added the comment:
New changeset 68d653f9a2c9 by Andrew Kuchling in branch '2.7':
#19934: fix mangled wording
https://hg.python.org/cpython/rev/68d653f9a2c9
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19934
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: docs@python - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19934
___
New submission from Matthew Gilson:
Reading the source for collections.Counter.most_common, the docstring mentions
that `n` can be `None` or omitted, but the online documentation does not
mention that `n` can be `None`.
--
assignee: docs@python
components: Documentation
messages:
Matthew Gilson added the comment:
This is a very simple patch which addresses the issue. I am still curious
whether the reported function signature should be changed from:
.. method:: most_common([n])
to:
.. method:: most_common(n=None)
. Any thoughts?
Also, while I was in there,
Changes by Vajrasky Kok sky@speaklikeaking.com:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19934
___
___