In <[EMAIL PROTECTED]>, Gabriel
Genellina wrote:
> At Thursday 7/12/2006 16:46, Roy Smith wrote:
>
>>I see your point. Actually, I think you want to force the sequences to be
>>lists (regardless of what syntax we end up with), on the theory that tuples
>>are for heterogeneous sequences and lists
At Thursday 7/12/2006 16:46, Roy Smith wrote:
I see your point. Actually, I think you want to force the sequences to be
lists (regardless of what syntax we end up with), on the theory that tuples
are for heterogeneous sequences and lists are for homogeneous ones.
Any rationale for this theory
John Machin wrote:
> Roy Smith wrote:
>
> > It would be nice if struct.unpack() had a way to specify unpacking repeated
> > items as a list, ie:
> >
> >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(B) H I", strMessage)
> >(top,
> > ip,
> > messageCounter,
> > ackRequired,
> >
Roy Smith wrote:
> In article <[EMAIL PROTECTED]>,
> "John Machin" <[EMAIL PROTECTED]> wrote:
>
> > Roy Smith wrote:
> >
> > > It would be nice if struct.unpack() had a way to specify unpacking
> > > repeated
> > > items as a list, ie:
> > >
> > >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(
In article <[EMAIL PROTECTED]>,
"John Machin" <[EMAIL PROTECTED]> wrote:
> Roy Smith wrote:
>
> > It would be nice if struct.unpack() had a way to specify unpacking repeated
> > items as a list, ie:
> >
> >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(B) H I", strMessage)
> >(top,
> >
Roy Smith wrote:
> It would be nice if struct.unpack() had a way to specify unpacking repeated
> items as a list, ie:
>
>data = struct.unpack ("! H 4(B) H 2B 12(B) 6(B) H I", strMessage)
>(top,
> ip,
> messageCounter,
> ackRequired,
> dataType,
> utc,
> st,
> n
In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> Michael Yanowitz wrote:
>
> > What would be the best way to split the following line (Python doesn't like
> > me to split it up between the comma-separated parameters):
> >
> >top, ip1, ip2, ip3, ip4, messageCounter
Fredrik Lundh wrote:
> Michael Yanowitz wrote:
>
> > What would be the best way to split the following line (Python doesn't like
> > me to split it up between the comma-separated parameters):
> >
> >top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, dataType, utc1,
> > utc2, utc3, utc4, utc5
Fredrik Lundh wrote:
> Michael Yanowitz wrote:
>
> > What would be the best way to split the following line (Python doesn't like
> > me to split it up between the comma-separated parameters):
> >
> >top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, dataType, utc1,
> > utc2, utc3, utc4, utc
Michael Yanowitz wrote:
> What would be the best way to split the following line (Python doesn't like
> me to split it up between the comma-separated parameters):
>
>top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, dataType, utc1,
> utc2, utc3, utc4, utc5, utc6, utc7, utc8, utc9, utc10, u
10 matches
Mail list logo