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

.



Relevant Pages

  • using builtin array
    ... Is it possible to join/append 2 arrays defined with different ... Prev by Date: ...
    (comp.lang.python)
  • Writing data to excel in multiple columns
    ... I have 9 arrays of values that I concatenate into one array, ... then send through a formula node. ... Prev by Date: ...
    (comp.lang.labview)
  • Re: Arent All MD5 Hashes the Same?
    ... string key = sb.ToString; ... Better to concatenate byte arrays since ... Hence MD5 is giving you a different hash. ... // Concatenate the arrays in the right order. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Building HTML - String vs Array
    ... Concatenate Strings: ... Build Using Arrays: ... Use either arrays or string concatenation, whichever suits. ...
    (comp.lang.javascript)
  • Re: concatenate thousands of arrays?
    ... i have about 2500 arrays that i'd like to concatenate into a ... "Never attribute to malice that which can be adequately explained by stupidity." ...
    (comp.soft-sys.matlab)