Philosophical long integer question...
Charles G Waldman
cgw at alum.mit.edu
Wed Mar 29 18:13:03 EST 2000
In article <38E23160.B16860C2 at bioreason.com>, Brian Kelley
<kelley at bioreason.com> wrote:
> In the same vein as should 1/2 equal 0.5:
>
> should (1 << 1000) produce a long int? (It currently produces 0 on a
> machine with 32 bit integers)
Yes, IMO, int operations shouldn't overflow, they should automatically
promote to long.
(And 1/2 should be 0.5, but I realize that won't ever change unless I donate
$1,000,000 to the Python Consortium. And maybe not even then. But it's
a moot point, because I'm not that rich)
And-the-square-root-of-minus-1-is-called-I-not-J'ly yrs,
cgw
More information about the Python-list
mailing list