summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-04-04 06:50:58 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-04-04 06:50:58 (GMT)
commit4edfe963818e77b804c00ea423503cd7cd445943 (patch)
treea55b548d5cf8bd06eefc3dd85ca9cb6c49c18d81
parent0cee3794c7c9167ff2141bf13c2379edd0c5cec9 (diff)
downloadcpython-4edfe963818e77b804c00ea423503cd7cd445943.zip
cpython-4edfe963818e77b804c00ea423503cd7cd445943.tar.gz
cpython-4edfe963818e77b804c00ea423503cd7cd445943.tar.bz2
Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo.
-rw-r--r--Doc/library/collections.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index f579101..075b015 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -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.