array concatenation
- From: "ashtonn@xxxxxxxxx" <doodle4@xxxxxxxxx>
- Date: 31 May 2005 11:08:53 -0700
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
.
- Prev by Date: Re: how to prepend string to a string?
- Next by Date: Re: anygui,anydb, any opinions?
- Previous by thread: Re: how to prepend string to a string?
- Next by thread: working with pointers
- Index(es):
Relevant Pages
|