On Apr 16, 11:44 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > 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)) > > HTH, > Martin
Yes, that did help. Thanks. I assumed that the compiler would warn me about that kind of problem, but I know better know. :) Still, the error message is somewhat confusing. -- http://mail.python.org/mailman/listinfo/python-list