[Python-checkins] r79735 - python/trunk/Doc/library/collections.rst
ezio.melotti
python-checkins at python.org
Sun Apr 4 08:50:58 CEST 2010
Author: ezio.melotti
Date: Sun Apr 4 08:50:58 2010
New Revision: 79735
Log:
Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo.
Modified:
python/trunk/Doc/library/collections.rst
Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst (original)
+++ python/trunk/Doc/library/collections.rst Sun Apr 4 08:50:58 2010
@@ -207,7 +207,7 @@
.. 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 @@
>>> 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.
More information about the Python-checkins
mailing list