[Python-checkins] cpython (2.7): 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:46 CET 2013


http://hg.python.org/cpython/rev/2a3884b6ffb5
changeset:   81572:2a3884b6ffb5
branch:      2.7
user:        Łukasz Langa <lukasz at langa.pl>
date:        Fri Jan 18 13:31:53 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
@@ -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 @@
 
 
 .. 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