<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
yes but the counted length string must be just before the string<br>
<br>
with ?X syntax you can use a length which can be stored wherever<br>
you want (before the string yet)<br>
<br>
Richard Brodie a écrit:<br>
<blockquote type="cite" cite="midb5fiim$jd6@newton.cc.rl.ac.uk">
  <pre wrap="">"Tim Peters" <a class="moz-txt-link-rfc2396E" href="mailto:tim.one@comcast.net"><tim.one@comcast.net></a> wrote in message
<a class="moz-txt-link-freetext" href="news:mailman.1048262974.10758.python-list@python.org">news:mailman.1048262974.10758.python-list@python.org</a>...

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">did someone extend struct module to manage not fixed lengh of
array.
      </pre>
    </blockquote>
    <pre wrap="">Doesn't seem worth the confusion or bother to me.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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?


  </pre>
</blockquote>
<br>
</body>
</html>