Lisandro Dalcin wrote: > the generated code for, let say > 'insinstance(None, list)' has two superfluous casts: > > __pyx_1 = PyObject_TypeCheck(Py_None, ((PyTypeObject > *)((PyObject*)&PyList_Type)));
That's because PyList_Type is known to have type 'type' (at least Pyrex knows this, I'm assuming Cyton does too). If you declare typecheck() as taking a type for the second argument, rather than object, you shouldn't get those casts. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
