[Python-checkins] cpython (3.2): Update example: Counter.subtract returns None, not self
andrew.svetlov
python-checkins at python.org
Mon Dec 17 13:01:57 CET 2012
http://hg.python.org/cpython/rev/248359588f89
changeset: 80902:248359588f89
branch: 3.2
parent: 80898:8b9a7e65caf2
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Mon Dec 17 14:01:16 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
@@ -121,6 +121,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