[Cython] How does a fused function differ from an overloaded function?

2013-02-09 Thread Stefan Behnel
Hi, I noticed that Cython currently fails to do this: cdef int (*int_abs)(int x) cdef object py_abs py_abs = int_abs = abs Here, abs() is an overloaded function with a couple of C signatures (fabs() and friends) and a Python signature (the builtin). While there is code in

Re: [Cython] How does a fused function differ from an overloaded function?

2013-02-09 Thread mark florisson
On 9 February 2013 03:44, Stefan Behnel stefan...@behnel.de wrote: Hi, I noticed that Cython currently fails to do this: cdef int (*int_abs)(int x) cdef object py_abs py_abs = int_abs = abs Here, abs() is an overloaded function with a couple of C signatures (fabs() and friends)

Re: [Cython] How does a fused function differ from an overloaded function?

2013-02-09 Thread Stefan Behnel
mark florisson, 10.02.2013 03:25: On 9 February 2013 03:44, Stefan Behnel stefan...@behnel.de wrote: Hi, I noticed that Cython currently fails to do this: cdef int (*int_abs)(int x) cdef object py_abs py_abs = int_abs = abs Here, abs() is an overloaded function with a couple of