Re: [Cython] Python callable staticmethods?

2017-09-25 Thread Robert Bradshaw
On Mon, Sep 25, 2017 at 12:58 PM, John Ehresman wrote: > On 9/25/17 3:32 PM, Stefan Behnel wrote: >> >> Am 25. September 2017 20:59:01 MESZ schrieb John Ehresman: >>> >>> Is there a way to define a Python callable staticmethod in a Cython >>> cdef class? >> >> >> Did you try it? > > > Not fully, I

Re: [Cython] Python callable staticmethods?

2017-09-25 Thread John Ehresman
On 9/25/17 3:32 PM, Stefan Behnel wrote: Am 25. September 2017 20:59:01 MESZ schrieb John Ehresman: Is there a way to define a Python callable staticmethod in a Cython cdef class? Did you try it? Not fully, I'll admit. I found that the following are invalid in a .pxd: cdef class Cls: @s

Re: [Cython] Python callable staticmethods?

2017-09-25 Thread Stefan Behnel
Am 25. September 2017 20:59:01 MESZ schrieb John Ehresman: >Is there a way to define a Python callable staticmethod in a Cython >cdef class? Did you try it? Stefan ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/lis

[Cython] Python callable staticmethods?

2017-09-25 Thread John Ehresman
Hi, Is there a way to define a Python callable staticmethod in a Cython cdef class? If not, how hard might this be implement? Thanks, John ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel