mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo.
This commit is contained in:
parent
0cee3794c7
commit
4edfe96381
1 changed files with 1 additions and 3 deletions
|
|
@ -207,7 +207,7 @@ For example::
|
|||
.. versionadded:: 2.7
|
||||
|
||||
|
||||
Counter objects support two methods beyond those available for all
|
||||
Counter objects support three methods beyond those available for all
|
||||
dictionaries:
|
||||
|
||||
.. method:: elements()
|
||||
|
|
@ -241,8 +241,6 @@ For example::
|
|||
>>> c.subtract(d)
|
||||
Counter({'a': 3, 'b': 0, 'c': -3, 'd': -6})
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
The usual dictionary methods are available for :class:`Counter` objects
|
||||
except for two which work differently for counters.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue