pack/unpack zero terminated string

Laurent Pointal laurent.pointal at limsi.fr
Wed May 2 10:01:41 EDT 2007


tmp123 a écrit :
> Hello,
> 
> Thanks for your time.
> 
> After review the "struct" documentation, it seems there are no option
> to pack/unpack zero terminated strings.
> 
> By example, if the packed data contains: byte + zero terminated string
> + zero terminated string + byte, it seems no possible to unpack it
> using "struct".
> 
> Please, has someone any hint or pointer to another librarian to be
> used?

May look at xstruct too

http://www.sis.nl/python/xstruct/xstruct.shtml




More information about the Python-list mailing list