[Python-checkins] cpython (merge 3.3 -> default): Update example: Counter.subtract returns None, not self
andrew.svetlov
python-checkins at python.org
Mon Dec 17 13:02:00 CET 2012
http://hg.python.org/cpython/rev/45dfb657b430
changeset: 80904:45dfb657b430
parent: 80900:49160bb35871
parent: 80903:fefe2fe93232
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Mon Dec 17 14:01:45 2012 +0200
summary:
Update example: Counter.subtract returns None, not self
files:
Doc/library/collections.rst | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -279,6 +279,7 @@
>>> c = Counter(a=4, b=2, c=0, d=-2)
>>> d = Counter(a=1, b=2, c=3, d=4)
>>> c.subtract(d)
+ >>> c
Counter({'a': 3, 'b': 0, 'c': -3, 'd': -6})
.. versionadded:: 3.2
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list