Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0be8b1c

Browse files
committed
Merged revisions 79733,79735 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r79733 | ezio.melotti | 2010-04-04 09:41:27 +0300 (Sun, 04 Apr 2010) | 1 line Add a versionadded to Counter.subtract() doc. ........ r79735 | ezio.melotti | 2010-04-04 09:50:58 +0300 (Sun, 04 Apr 2010) | 1 line Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo. ........
1 parent 993a5ee commit 0be8b1c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/collections.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ For example::
191191
.. versionadded:: 3.1
192192

193193

194-
Counter objects support two methods beyond those available for all
194+
Counter objects support three methods beyond those available for all
195195
dictionaries:
196196

197197
.. method:: elements()
@@ -225,6 +225,8 @@ For example::
225225
>>> c.subtract(d)
226226
Counter({'a': 3, 'b': 0, 'c': -3, 'd': -6})
227227

228+
.. versionadded:: 3.2
229+
228230
The usual dictionary methods are available for :class:`Counter` objects
229231
except for two which work differently for counters.
230232

0 commit comments

Comments
 (0)