int/long unification hides bugs

Tim Leslie tim.leslie at gmail.com
Wed Oct 27 01:16:16 EDT 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

> 
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list