[EMAIL PROTECTED] wrote: > Hello, > > Is it possible to convert unsigned long( 4 bytes) to unsigned char(1 > byte), so that i could define a common array for both. > > import array > temp = array('B', '\0' * 512) > > for i in range( 2): > temp[0] = 0xFF > temp[1] = 0xFFFFFFFF
use module struct. Diez -- http://mail.python.org/mailman/listinfo/python-list