summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-01-18 12:40:43 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2013-01-18 12:40:43 (GMT)
commit288234fe0e5fa91af5a00ab55b3136be041f659f (patch)
tree32588669e37e9ccc90e3667f0b4ce1f400e2d012 /Doc
parentb24d0d984c3a3410c1f1d58ac6d04a3f1274b8f1 (diff)
downloadcpython-288234fe0e5fa91af5a00ab55b3136be041f659f.zip
cpython-288234fe0e5fa91af5a00ab55b3136be041f659f.tar.gz
cpython-288234fe0e5fa91af5a00ab55b3136be041f659f.tar.bz2
math.fsum docs did not show up because of a misplaced testsetup directive
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/math.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 5d6f951..c082980 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -4,6 +4,9 @@
.. module:: math
:synopsis: Mathematical functions (sin() etc.).
+.. testsetup::
+
+ from math import fsum
This module is always available. It provides access to the mathematical
functions defined by the C standard.
@@ -77,8 +80,6 @@ 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::