[Cython] callable() optimization
vitja.makarov at gmail.com
Tue May 8 13:27:28 CEST 2012
I've noticed regression related to callable() optimization.
It prints True optimized version checks ((obj)->ob_type->tp_call !=
NULL) condition that is True for both class and instance.
callable(object) -> bool
Return whether the object is callable (i.e., some kind of function).
Note that classes are callable, as are instances with a __call__() method.
More information about the cython-devel