[Python-checkins] cpython (merge 3.3 -> default): 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:51 CET 2013


http://hg.python.org/cpython/rev/c5508c706293
changeset:   81575:c5508c706293
parent:      81569:e6cd37d4dad8
parent:      81574:01c79fb996a3
user:        Łukasz Langa <lukasz at langa.pl>
date:        Fri Jan 18 13:42:56 2013 +0100
summary:
  math.fsum docs did not show up because of a misplaced testsetup directive
(merged 3.2 fix through 3.3)

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