Robert Bradshaw wrote:

> The only problem with isinstance is that the type may lie via its  
> __class__ attribute, but if the second argument is an extension class  
> then it should to a type test.

However, if there's a noticeable speed difference between
PyObject_IsInstance and PyObject_TypeCheck, it may still
be desirable to have both available.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to