[Tutor] array and int

Dinesh B Vadhia dineshbvadhia at hotmail.com
Fri Jun 26 20:28:03 CEST 2009


Say, you create an array['i'] for signed integers (which take a minimum 2 bytes).  A calculation results in an integer that is larger than the range of an 'i'.  Normally, Python will convert an 'i' to a 4-byte 'l' integer.  But, does the same apply for an array ie. does Python dynamically adjust from array['i'] to array['l'']?

Before anyone suggests it, I would be using Numpy for arrays but there isn't a 64-bit version available under Windows that works.

Dinesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090626/68d44cb0/attachment.htm>


More information about the Tutor mailing list