C++ extension problem

"Martin v. Löwis" martin at v.loewis.de
Mon Apr 16 17:44:57 EDT 2007

> Now this is what confuses me: Why does it say that I have the wrong
> type when it's the same type as it suggests?

When referring to the type, you must *always* form the address of the
type structure, including, but not limited to, the line

>     if (!PyArg_ParseTuple(args, "O!", SillyStringType, &o))


More information about the Python-list mailing list