]> granicus.if.org Git - python/commitdiff
#12211: remove paragraph about NaNs
authorAndrew Kuchling <amk@amk.ca>
Sun, 16 Feb 2014 17:09:35 +0000 (12:09 -0500)
committerAndrew Kuchling <amk@amk.ca>
Sun, 16 Feb 2014 17:09:35 +0000 (12:09 -0500)
Doc/library/math.rst
Modules/mathmodule.c

index 0083409042362c77ff89e60160a73e694d38a8ca..3c4167209540fded656f894ef6e012b91f3eafe4 100644 (file)
@@ -40,9 +40,6 @@ Number-theoretic and representation functions
    *y*.  On platforms that support signed zeros, ``copysign(1.0, -0.0)``
    returns *-1.0*.
 
-   If *x* is NaN, *y* is ignored and NaN is returned.  If *y* is NaN,
-   it is treated as positive: ``copysign(-1.0, NaN)`` returns 1.0.
-
 .. function:: fabs(x)
 
    Return the absolute value of *x*.
index 00e2612fd3b3a437463406b537de1a9e846c0fea..7f094ffb537df04bc39f107098259583a03e5e16 100644 (file)
@@ -908,9 +908,7 @@ PyDoc_STRVAR(math_ceil_doc,
 FUNC2(copysign, copysign,
       "copysign(x, y)\n\nReturn a float with the magnitude (absolute value) "
       "of x but the sign \nof y. On platforms that support signed zeros, "
-      "copysign(1.0, -0.0) \nreturns -1.0.\n\n"
-      "If x is NaN, y is ignored and NaN is returned. If y is NaN, it is\n"
-      "treated as positive.")
+      "copysign(1.0, -0.0) \nreturns -1.0.\n")
 FUNC1(cos, cos, 0,
       "cos(x)\n\nReturn the cosine of x (measured in radians).")
 FUNC1(cosh, cosh, 1,