summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-04-04 06:41:27 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-04-04 06:41:27 (GMT)
commit0cee3794c7c9167ff2141bf13c2379edd0c5cec9 (patch)
treebb03ae2330d2739307e61281b5f21e0125d7839a /Doc
parent20ae90d887a00c713899f8901ee4635ed0332595 (diff)
downloadcpython-0cee3794c7c9167ff2141bf13c2379edd0c5cec9.zip
cpython-0cee3794c7c9167ff2141bf13c2379edd0c5cec9.tar.gz
cpython-0cee3794c7c9167ff2141bf13c2379edd0c5cec9.tar.bz2
Add a versionadded to Counter.subtract() doc.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index f4ba51a..f579101 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -241,6 +241,8 @@ 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.