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


http://hg.python.org/cpython/rev/01c79fb996a3
changeset:   81574:01c79fb996a3
branch:      3.3
parent:      81568:2adc83b4738f
parent:      81573:bd0c60461324
user:        Łukasz Langa <lukasz at langa.pl>
date:        Fri Jan 18 13:41:14 2013 +0100
summary:
  math.fsum docs did not show up because of a misplaced testsetup directive
(merged 3.2 fix)

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