[Python-checkins] cpython (3.2): math.fsum docs did not show up because of a misplaced testsetup directive

lukasz.langa python-checkins at python.org
Fri Jan 18 13:43:48 CET 2013


http://hg.python.org/cpython/rev/bd0c60461324
changeset: 81573:bd0c60461324
branch: 3.2
parent: 81562:ce6dc780e69e
user: Łukasz Langa <lukasz at langa.pl>
date: Fri Jan 18 13:40:43 2013 +0100
summary:
 math.fsum docs did not show up because of a misplaced testsetup directive
files:
 Doc/library/math.rst | 5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
--- 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 @@
 
 
 .. 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::
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /