array concatenation
ashtonn@gmail.com
doodle4 at gmail.com
Tue May 31 14:08:53 EDT 2005
Hello,
I have 2 arrays defined with different typecodes.
a = array('B', '\0', 6)
b = array('L', '\0', 526)
for i in range( 6):
a[i] = 0xFF
for i in range( 520):
b[i] = 0xCCCCCCCC
How do i concatenate these two arrays so that, i get
b =
0xff 0xff 0xff 0xff 0xff 0xff 0xCCCCCCCC 0xCCCCCCCC
...................................................
...................................................
0xCCCCCCCC
I need an array because i am using a buffer_info method.
-Ashton
More information about the Python-list
mailing list