From: Ɓukasz Langa Date: Fri, 18 Jan 2013 12:31:53 +0000 (+0100) Subject: math.fsum docs did not show up because of a misplaced testsetup directive X-Git-Tag: v2.7.4rc1~236 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a670fcc69238f8afd1cee7b41c3a9241e9f4ec75;p=thirdparty%2FPython%2Fcpython.git math.fsum docs did not show up because of a misplaced testsetup directive --- diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 57d776243523..1df48fc572e1 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -5,6 +5,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. @@ -82,8 +85,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::