Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

array concatenation

0 views
Skip to first unread message

doo...@gmail.com

unread,
May 31, 2005, 2:08:53 PM5/31/05
to
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

0 new messages