#3777: long(4.2) returned an int, and broke backward compatibility.
commitfa32c32cb826d9b9007f9d7f5ad15c43c1ee0b4d
authoramaury.forgeotdarc <amaury.forgeotdarc@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 9 Sep 2008 07:24:30 +0000 (9 07:24 +0000)
committeramaury.forgeotdarc <amaury.forgeotdarc@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 9 Sep 2008 07:24:30 +0000 (9 07:24 +0000)
tree8256dfe7f973d2089120440e1c8a91be0e2cd6bb
parent02df5f3070a54702a8178b211351d032897ba9b6
#3777: long(4.2) returned an int, and broke backward compatibility.
the __long__ slot is allowed to return either int or long, but the behaviour of
float objects should not change between 2.5 and 2.6.

Reviewed by Benjamin Peterson

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