Re: using builtin array

2005-06-02 Thread Diez B. Roggisch
> Arrays are homogenous. No chance concatenating them. This should of course read "No chance concatenating arrays of different typecodes". -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list

Re: using builtin array

2005-06-01 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > I am constructing a packet, with the first 6 bytes being the > destination address, followed by src, and type. As I told you - use struct. > The remaining space > will be filled with data. I need to use an array because of the > buffer_info method i am calling. That's

Re: using builtin array

2005-06-01 Thread [EMAIL PROTECTED]
I am constructing a packet, with the first 6 bytes being the destination address, followed by src, and type. The remaining space will be filled with data. I need to use an array because of the buffer_info method i am calling. -SB -- http://mail.python.org/mailman/listinfo/python-list

Re: using builtin array

2005-06-01 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Is it possible to join/append 2 arrays defined with different > typecodes? > > What typecode should i use to generate the following output. > > data1 = array('h', '\0', 6) > data2 = array('L', '\0', 25) > > for i in range( 6): > data1[0] = 0xFF > data2[1] = 0x0

using builtin array

2005-06-01 Thread shama . bell
Is it possible to join/append 2 arrays defined with different typecodes? What typecode should i use to generate the following output. data1 = array('h', '\0', 6) data2 = array('L', '\0', 25) for i in range( 6): data1[0] = 0xFF data2[1] = 0x00 data1[2] = 0x00 data1[3] = 0x00 d