Need help with an array problem.
Robert Kern
robert.kern at gmail.com
Mon Oct 2 18:48:56 EDT 2006
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.
--
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
mailing list