Issue #1481296: (again!) Make conversion of a float NaN to an int or
commitdd699c8b150057c037878cc148ce78f02b2e24c4
authormark.dickinson <mark.dickinson@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 4 Aug 2008 21:30:09 +0000 (4 21:30 +0000)
committermark.dickinson <mark.dickinson@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 4 Aug 2008 21:30:09 +0000 (4 21:30 +0000)
tree55c5965d3a95f1909426b35be7bb4b256a6303e7
parentcd2f18f57ca6ef20387fdf409e2edd946b2d6c9f
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')).

git-svn-id: http://svn.python.org/projects/python/trunk@65518 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/test_long.py
Misc/NEWS
Objects/longobject.c