469,625 Members | 1,078 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

array concatenation

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

Jul 19 '05 #1
0 1163

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Jonas Galvez | last post: by
12 posts views Thread by Treetop | last post: by
8 posts views Thread by Mike S. Nowostawsky | last post: by
20 posts views Thread by Pavel Stehule | last post: by
11 posts views Thread by Leszek | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.