Absolultely confused...

Fredrik Lundh fredrik at pythonware.com
Thu Oct 6 17:09:46 CEST 2005


Jeremy Moles wrote:

> So, here is my relevant code:
>
> PyArg_ParseTuple(args, "O!", &PyType_vector3d, &arg1)
>
> And here ismy error message:
>
> argument 1 must be pylf.core.vector3d, not pylf.core.vector3d

try adding

    printf("%p %p\n", &PyType_vector3d, arg1->ob_type);

before the parsetuple statement.

> I guess my question is: what in the world could be causing this to fail?

multiple instances of the type object.

</F>






More information about the Python-list mailing list