array concatenation

A

ashtonn

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 = 0xFF

for i in range( 520):
b = 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top