overflowerror!!

John Machin sjmachin at lexicon.net
Thu May 26 19:13:17 EDT 2005


Will McGugan wrote:
> ashtonn at gmail.com wrote:
> 
>> I tried that. Still get an Overflowerror: unsigned long is less than
>> minimum.
>>
> 
> You'll also need to reserve enough space for the 256 ints. Try this..
> 
> data = array('L', '\0' * 256*4)
> 
> 

I don't understand. Why not just do the whole thing simply and cleanly, 
like this:

data = array('L', 256 * [0xffffffff])





More information about the Python-list mailing list