[issue1481296] long(float('nan'))!=0L

Ronald Oussoren report at bugs.python.org
Fri Jan 4 07:35:17 CET 2008


Ronald Oussoren added the comment:

The change in the trunk seems like a good backport candidate, it fixes 
an issue with float conversion on OSX compared to other platforms.

That said, I don't like the patch. This makes the current behaviour of 
converting float NaN's to 0 the defined behaviour, which feels wrong (he 
says without having the slightest idea of what the relevant standards 
might say about this).  Shouldn't this raise an exception instead of 
silently converting?

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1481296>
_____________________________________


More information about the Python-bugs-list mailing list