summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-01-18 12:42:56 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2013-01-18 12:42:56 (GMT)
commit4cdd4c03c984fd8499d7c1fb60495ea6dc3b0ef5 (patch)
tree6e40ea7bbd9072610d46a8d65e79db12b092b3bc /Doc
parent9f30abd3935704528f784d03f9a630a923c485e9 (diff)
parent37bfa238da2b51d151da8a49f22dc60230494d4c (diff)
downloadcpython-4cdd4c03c984fd8499d7c1fb60495ea6dc3b0ef5.zip
cpython-4cdd4c03c984fd8499d7c1fb60495ea6dc3b0ef5.tar.gz
cpython-4cdd4c03c984fd8499d7c1fb60495ea6dc3b0ef5.tar.bz2
math.fsum docs did not show up because of a misplaced testsetup directive
(merged 3.2 fix through 3.3)
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 b056ca4..2f2558b 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::