Re: [Cython] Compiler error when @staticmethod is used in cdef class

2011-04-27 Thread Lisandro Dalcin
On 27 April 2011 12:45, Bogdan Opanchuk wrote: > Hello, > > I am using Cython 0.14.1 with Python 2.7.1 on OSX 10.6.7 > > The following code: > --- > cdef class Test: >        @staticmethod >        def func(): >                print "Static method" > --- > gives error when being cythoned: "Method

[Cython] Compiler error when @staticmethod is used in cdef class

2011-04-27 Thread Bogdan Opanchuk
Hello, I am using Cython 0.14.1 with Python 2.7.1 on OSX 10.6.7 The following code: --- cdef class Test: @staticmethod def func(): print "Static method" --- gives error when being cythoned: "Method func has wrong number of arguments (0 declared, 1 or more expected)