lenght of char buffers in PyArg_ParseTuple

Duncan Booth me at privacy.net
Thu Jun 10 05:52:29 EDT 2004


Patrick Stinson <ajole-1 at gci.net> wrote in
news:10cg839aq5cv53e at corp.supernews.com: 

> is there any way to figure out how long the string buffer of a passed
> string object was after PyArg_ParseTuple(args, "s", &mybuffer)?

No, but there is if you call PyArg_ParseTuple(args, "s#", &mybuffer, 
&length) instead.




More information about the Python-list mailing list