Staging
v0.5.1
https://github.com/python/cpython
Revision d3ffb8974f85618dfbaacf2d10a32dc0e96f2f3d authored by Amaury Forgeot d'Arc on 09 September 2008, 07:24:30 UTC, committed by Amaury Forgeot d'Arc on 09 September 2008, 07:24:30 UTC
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
1 parent 672237d
History
Tip revision: d3ffb8974f85618dfbaacf2d10a32dc0e96f2f3d authored by Amaury Forgeot d'Arc on 09 September 2008, 07:24:30 UTC
#3777: long(4.2) returned an int, and broke backward compatibility.
Tip revision: d3ffb89

README

back to top