]> granicus.if.org Git - python/commit
#3777: long(4.2) returned an int, and broke backward compatibility.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 9 Sep 2008 07:24:30 +0000 (07:24 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 9 Sep 2008 07:24:30 +0000 (07:24 +0000)
commitd3ffb8974f85618dfbaacf2d10a32dc0e96f2f3d
tree4eff061ed01ab9ca0ebccb5a61bc8da6972c2ebc
parent672237dc6ca1498eabac08554bcbc5bd0fd9ddaa
#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
Lib/test/test_long.py
Misc/NEWS
Objects/floatobject.c