Kaydet (Commit) 0cee3794 authored tarafından Ezio Melotti's avatar Ezio Melotti

Add a versionadded to Counter.subtract() doc.

üst 20ae90d8
...@@ -241,6 +241,8 @@ For example:: ...@@ -241,6 +241,8 @@ For example::
>>> c.subtract(d) >>> c.subtract(d)
Counter({'a': 3, 'b': 0, 'c': -3, 'd': -6}) Counter({'a': 3, 'b': 0, 'c': -3, 'd': -6})
.. versionadded:: 2.7
The usual dictionary methods are available for :class:`Counter` objects The usual dictionary methods are available for :class:`Counter` objects
except for two which work differently for counters. except for two which work differently for counters.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment