Re: [Cython] Problems with decorated methods in cdef classes

2011-08-22 Thread Stefan Behnel
Robert Bradshaw, 17.08.2011 08:02: On Sun, Aug 14, 2011 at 8:02 AM, Stefan Behnel wrote: def print_args(func): def f(*args, **kwds): print "args", args, "kwds", kwds return func(*args, **kwds) return f cdef class Num: @print_args def is_prime(self, bint print_fac

Re: [Cython] Problems with decorated methods in cdef classes

2011-08-16 Thread Robert Bradshaw
On Sun, Aug 14, 2011 at 8:02 AM, Stefan Behnel wrote: > Hi, > > I've taken another stab at #593 and changed the way decorators are currently > evaluated. > > http://trac.cython.org/cython_trac/ticket/593 > > https://github.com/cython/cython/commit/c40ff48f84b5e5841e4e2d2c6dcce3e6494e4c25 > > We pr

Re: [Cython] Problems with decorated methods in cdef classes

2011-08-14 Thread Stefan Behnel
Vitja Makarov, 14.08.2011 18:55: 2011/8/14 Stefan Behnel: Hi, I've taken another stab at #593 and changed the way decorators are currently evaluated. http://trac.cython.org/cython_trac/ticket/593 https://github.com/cython/cython/commit/c40ff48f84b5e5841e4e2d2c6dcce3e6494e4c25 We previously h

Re: [Cython] Problems with decorated methods in cdef classes

2011-08-14 Thread Vitja Makarov
2011/8/14 Stefan Behnel : > Hi, > > I've taken another stab at #593 and changed the way decorators are currently > evaluated. > > http://trac.cython.org/cython_trac/ticket/593 > > https://github.com/cython/cython/commit/c40ff48f84b5e5841e4e2d2c6dcce3e6494e4c25 > > We previously had > >    @deco >  

[Cython] Problems with decorated methods in cdef classes

2011-08-14 Thread Stefan Behnel
Hi, I've taken another stab at #593 and changed the way decorators are currently evaluated. http://trac.cython.org/cython_trac/ticket/593 https://github.com/cython/cython/commit/c40ff48f84b5e5841e4e2d2c6dcce3e6494e4c25 We previously had @deco def func(): pass turn into this: d