Re: struct.Struct random access

2008-08-29 Thread castironpi
On Aug 29, 10:30 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > castironpi <[EMAIL PROTECTED]> wrote: > > >CMIIW correct me if I'm wrong, I don't think that pack_into returns a > >value the way that pack does. > > Sorry, I was not aware that struct.pack_into and struct.unpack_from already > existed (

Re: struct.Struct random access

2008-08-29 Thread Tim Roberts
castironpi <[EMAIL PROTECTED]> wrote: > >CMIIW correct me if I'm wrong, I don't think that pack_into returns a >value the way that pack does. Sorry, I was not aware that struct.pack_into and struct.unpack_from already existed (they were added in Python 2.5). I thought you were proposing them as n

Re: struct.Struct random access

2008-08-28 Thread castironpi
On Aug 28, 1:59 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > castironpi <[EMAIL PROTECTED]> wrote: > > >I'd like to seriously nominate this idea and get a considered opinion > >on it. > > >struct.Struct lets you encode Python objects into structured memory. > >It accepts a format string, and option

Re: struct.Struct random access

2008-08-28 Thread Tim Roberts
castironpi <[EMAIL PROTECTED]> wrote: > >I'd like to seriously nominate this idea and get a considered opinion >on it. > >struct.Struct lets you encode Python objects into structured memory. >It accepts a format string, and optionally a buffer and offset to/from >which to read/write the structure.

struct.Struct random access

2008-08-26 Thread castironpi
I'd like to seriously nominate this idea and get a considered opinion on it. struct.Struct lets you encode Python objects into structured memory. It accepts a format string, and optionally a buffer and offset to/from which to read/write the structure. What do you think of random access to the res