On 18 дек, 14:09, Ivan Illarionov <ivan.illario... at gmail.com> wrote: > ... PyArg_ParseTuple(args, "O!", &PyStringObject, &pystr) ... Sorry, I must have said &PyString_Type, not &PyStringObject