diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-01-11 07:09:07 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-01-11 07:09:07 (GMT) |
commit | 405079213b7b35145ec5a437cd8b99528c3e4841 (patch) | |
tree | 5f322e834a73771b293658342562a468c5edc6d3 /Doc/library/math.rst | |
parent | 444d153d7ed9da2320e1fac91c4eb8666fb914f3 (diff) | |
download | cpython-405079213b7b35145ec5a437cd8b99528c3e4841.zip cpython-405079213b7b35145ec5a437cd8b99528c3e4841.tar.gz cpython-405079213b7b35145ec5a437cd8b99528c3e4841.tar.bz2 |
#16154: fix some doctests in Doc/library. Patch by Ravi Sinha.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r-- | Doc/library/math.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 98c5b33..5d6f951 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:: |