[Cython] Should we monkey patch inspect.isfunction() ?

2013-08-31 Thread Stefan Behnel
Hi, currently, this fails in Cython compiled code: def cyfunc(): pass import inspect assert inspect.isfunction(cyfunc) There isn't really much of a reason why this *should* fail, except for the implementation of inspect.isfunction(), which tests for isinstance(obj, types.Functi

Re: [Cython] Should we monkey patch inspect.isfunction() ?

2013-08-31 Thread Vitja Makarov
2013/8/31 Stefan Behnel : > Hi, > > currently, this fails in Cython compiled code: > > def cyfunc(): pass > > import inspect > assert inspect.isfunction(cyfunc) > > There isn't really much of a reason why this *should* fail, except for the > implementation of inspect.isfunction(), which