struct module...

Jp Calderone exarkun at intarweb.us
Fri Mar 21 13:39:41 EST 2003


On Fri, Mar 21, 2003 at 07:00:18PM +0100, Franck Bui-Huu wrote:
> yes but the counted length string must be just before the string
> 
> with ?X syntax you can use a length which can be stored wherever
> you want (before the string yet)
> 

  How would you know how much of the string had been consumed?  Presumably
you'd have to examine the length (and maybe the type) of the returned tuple. 

  Is this any easier than reading the length byte(s) in first?

  Jp

-- 
Examinations are formidable even to the best prepared, for
even the greatest fool may ask more the the wisest man can answer.
                -- C.C. Colton
-- 
 up 1 day, 13:58, 2 users, load average: 0.18, 0.34, 0.36





More information about the Python-list mailing list