[Cython] breaking news in Py3.4: inspect.isfunction(cyfunction) == True

Stefan Behnel stefan_ml at behnel.de
Fri Jan 31 21:01:47 CET 2014


Hi,

Yury Selivanov just committed a revised version of a patch I wrote for
CPython's inspect module last year. It now accepts Cython's function type
as Python function, based on the function-like attributes that it exports.

http://hg.python.org/cpython/rev/32a660a52aae

That means that things like inspect.signature(cyfunction) will also work
now, and finally have a reason to be further improved, including parameter
introspection, annotations, etc. :)

Stefan


More information about the cython-devel mailing list