[Python-Dev] long(float('nan')) conversion
Jeffrey Yasskin
jyasskin at gmail.com
Fri Jan 4 18:48:26 CET 2008
On Jan 4, 2008 9:19 AM, Guido van Rossum <guido at python.org> wrote:
> We should make sure inf and nan are treated correctly by the new
> round(), floor() and ceil() in 3.0 -- it looks like right now
> round(nan) returns 0, but it should raise ValueError. (Also, Jeffrey,
> I thought math.floor() was to return an int? Or do I misremember?)
That's correct. It's currently broken, but I was waiting to push on
http://bugs.python.org/issue1656 until the backport was figured out.
--
Namasté,
Jeffrey Yasskin
More information about the Python-Dev
mailing list