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.