wish: "struct" module extension proposal

paolo.salvan.amniup at libero.it paolo.salvan.amniup at libero.it
Fri Feb 2 11:50:39 CET 2001


I'm using the "struct" module to pack/unpack binary data...

I often pack strings rappresenting raw binary data putting a 4-bytes
integer indicating the string length, followed by the string
data...(it's likes the Pascal string coding schema, but with 4-bytes
prefix instead of the 1 byte prefix)

I think it would be generally useful if the struct format string was
extended to directly support this packing schema...what you think?

                          Paolo


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list