integer overflow
Michael Hudson
mwh at python.net
Thu Feb 5 11:32:18 EST 2004
Chad Haynes <haynesc at rockefeller.edu> writes:
> I got an odd error which I cannot explain and cannot seem to reproduce.
> The following statement
>
> lst[0] = num
>
> produced this error
>
> OverflowError: unsigned short is greater than maximum
>
> The number was around 65536 so it makes sense that it would overflow a
> short, but why is it trying to force it into a short integer?
Is lst an array.array('h') or something (numarray...)?
Cheers,
mwh
--
An encyclopedia is about being as accurate as it can, not being
evenly misinformed. -- Coby Beck, comp.lang.lisp
More information about the Python-list
mailing list