int/long unification hides bugs

Tim Leslie tim.leslie at
Wed Oct 27 07:16:16 CEST 2004

> the required range, while being different for different variables, is
> generally is less than 2**31 - & *that* can be checked by the
> language.

I was trying to write a program which counted the number of times
people made stupid arguments on this list so I wrote a python program
to do it. Unfortunately you came along and caused my variable to
overflow. How was I to know I'd go above that magic number? Life sure
would be easier if ints which got too large were seamlessly converted
to longs!

-- Tim

> --

More information about the Python-list mailing list