[Python-Dev] long(float('nan')) conversion (original) (raw)
Jeffrey Yasskin jyasskin at gmail.com
Fri Jan 4 18:48:26 CET 2008
- Previous message: [Python-Dev] long(float('nan')) conversion
- Next message: [Python-Dev] Bug day proposal: January 19th
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] long(float('nan')) conversion
- Next message: [Python-Dev] Bug day proposal: January 19th
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]