diff -r 76e9c3e876d4 Doc/library/math.rst --- a/Doc/library/math.rst Sun May 29 20:46:27 2011 +0200 +++ b/Doc/library/math.rst Wed Jun 08 13:04:21 2011 +0900 @@ -33,8 +33,8 @@ .. function:: copysign(x, y) - Return *x* with the sign of *y*. On a platform that supports - signed zeros, ``copysign(1.0, -0.0)`` returns *-1.0*. + Return a float with the magnitude of *x* but the sign of *y*. On platforms + that supports signed zeros, ``copysign(1.0, -0.0)`` returns *-1.0*. .. function:: fabs(x) diff -r 76e9c3e876d4 Modules/mathmodule.c --- a/Modules/mathmodule.c Sun May 29 20:46:27 2011 +0200 +++ b/Modules/mathmodule.c Wed Jun 08 13:04:21 2011 +0900 @@ -905,7 +905,9 @@ "This is the smallest integral value >= x."); FUNC2(copysign, copysign, - "copysign(x, y)\n\nReturn x with the sign of y.") + "copysign(x, y)\n\nReturn a float with the magnitude of x but the sign " + "of y.\nOn platforms that supports signed zeros, copysign(1.0, -0.0) " + "returns \n-1.0.") FUNC1(cos, cos, 0, "cos(x)\n\nReturn the cosine of x (measured in radians).") FUNC1(cosh, cosh, 1,