Mark Dickinson <dicki...@gmail.com> added the comment:

How about something like: "Return a float with the magnitude of x but the sign 
of y."?

The behaviour of math.copysign with respect to non-float inputs matches that of 
almost all the other math module functions:  integer arguments are first 
converted to floats, and then the underlying libm function applied.  I'm not 
convinced that changing the behaviour of copysign to produce integer results 
for integer argument would be a good idea.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12211>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to