overflowerror!!
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

overflowerror!!

From: <ashtonn@gmail.com>
Date: Thu May 26 2005 - 23:31:22 CEST

Hello,
I am trying to fill in a dword value into an array and i get an
overflowerror

Here's what iam trying to do.

from array import *
data = array('B', '\0' * 256)

val = 0xFFFFFFFF

for i in range(256):
    data[i] = val

print data

How do i fill in the val 256 times into the array?

-Ashton
Received on Thu Sep 29 16:14:34 2005