> 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
[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
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
[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
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