struct module...

Richard Brodie R.Brodie at
Fri Mar 21 18:36:21 CET 2003

"Tim Peters" < at> wrote in message
news:mailman.1048262974.10758.python-list at

> > did someone extend struct module to manage not fixed lengh of
> > array.
> Doesn't seem worth the confusion or bother to me.

The p format does seem to have rather curious semantics; I would
have thought the 'least surprising' thing would be for it to take a string
and store it as a counted length string.

'B?(1)c' looks like ugly syntax though. What about *p for an implied
length byte-counted string?

More information about the Python-list mailing list