On Tue, 7 Dec 2004 16:44:56 -0500, Tim Peters [EMAIL PROTECTED] wrote:
[Tim Peters]
... there's no promise anywhere, e.g., that Python will return an int
whenever it's physically possible to do so.
[Bengt Richter]
Ok, I understand the expediency of that policy, but what is now the meaning
of
[Bengt Richter]
Peculiar boundary cases:
2.0**31-1.0
2147483647.0
int(2147483647.0)
2147483647L
int(2147483647L )
2147483647
-2.0**31
-2147483648.0
int(-2147483648.0)
-2147483648L
int(-2147483648L )
-2147483648
some kind of one-off error?
It would help if you were
Peculiar boundary cases:
2.0**31-1.0
2147483647.0
int(2147483647.0)
2147483647L
int(2147483647L )
2147483647
-2.0**31
-2147483648.0
int(-2147483648.0)
-2147483648L
int(-2147483648L )
-2147483648
some kind of one-off error? I.e., just inside extremes works:
[int(x) for x in