summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-11 07:12:28 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-11 07:12:28 (GMT)
commit5a4b03dd8207cabbcaccbc9d6a1ee4856dd793f0 (patch)
tree7f7d82c9f763890fafc56859ecd69a85ef5102ea /Doc/library/math.rst
parentb2b2252a810bced56ff8228ea99b0935e08e4e56 (diff)
parent405079213b7b35145ec5a437cd8b99528c3e4841 (diff)
downloadcpython-5a4b03dd8207cabbcaccbc9d6a1ee4856dd793f0.zip
cpython-5a4b03dd8207cabbcaccbc9d6a1ee4856dd793f0.tar.gz
cpython-5a4b03dd8207cabbcaccbc9d6a1ee4856dd793f0.tar.bz2
#16154: merge with 3.2.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 62c0f34..b056ca4 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -77,6 +77,8 @@ Number-theoretic and representation functions
.. function:: fsum(iterable)
+.. testsetup::
+ >>> from math import fsum
Return an accurate floating point sum of values in the iterable. Avoids
loss of precision by tracking multiple intermediate partial sums::