]> granicus.if.org Git - python/commit
Issue #1481296: (again!) Make conversion of a float NaN to an int or
authorMark Dickinson <dickinsm@gmail.com>
Mon, 4 Aug 2008 21:30:09 +0000 (21:30 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 4 Aug 2008 21:30:09 +0000 (21:30 +0000)
commitb646757e01d51c242eef2f9802f1ca6836a5804a
treef0976c5dcec20fa8bf42db406006df4058e394a1
parentff6868cf10409441666d462af7df6a04faa45d1c
Issue #1481296: (again!) Make conversion of a float NaN to an int or
long raise ValueError instead of returning 0.  Also, change the error
message for conversion of an infinity to an integer, replacing 'long' by
'integer', so that it's appropriate for both long(float('inf')) and
int(float('inf')).
Lib/test/test_long.py
Misc/NEWS
Objects/longobject.c