Need help with an array problem.
bjobrien62 at gmail.com
Tue Oct 3 03:04:42 CEST 2006
Robert Kern wrote:
> jakobsg at gmail.com wrote:
> > To your question on casting long to short. This is how:
> > a=1234L # long
> > b=int(a) # int (short)
> No, a Python int is a C long. A Python long is an arbitrary-precision number and
> does not correspond to any C type.
So there is no short(number) casting?
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless enigma
> that is made terrible by our own mad attempt to interpret it as though it had
> an underlying truth."
> -- Umberto Eco
More information about the Python-list