Re: [Tutor] array and int

2009-06-26 Thread Kent Johnson
On Fri, Jun 26, 2009 at 2:28 PM, Dinesh B Vadhia wrote: > 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 th

[Tutor] array and int

2009-06-26 Thread Dinesh B Vadhia
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