Re: [Cython] pure mode quirk

2012-05-10 Thread Robert Bradshaw
On Thu, May 10, 2012 at 2:25 AM, Stefan Behnel wrote: > Hi, > > when declaring a C function in pure mode, you eventually end up with this: > >    @cython.cfunc >    @cython.returns(cython.bint) >    @cython.locals(a=cython.int, b=cython.int, c=cython.int) >    def c_compare(a,b): >        c = 5 >

Re: [Cython] pure mode quirk

2012-05-10 Thread Stefan Behnel
mark florisson, 10.05.2012 11:41: > On 10 May 2012 10:25, Stefan Behnel wrote: >> when declaring a C function in pure mode, you eventually end up with this: >> >>@cython.cfunc >>@cython.returns(cython.bint) >>@cython.locals(a=cython.int, b=cython.int, c=cython.int) >>def c_compare(a

Re: [Cython] pure mode quirk

2012-05-10 Thread mark florisson
On 10 May 2012 10:25, Stefan Behnel wrote: > Hi, > > when declaring a C function in pure mode, you eventually end up with this: > >    @cython.cfunc >    @cython.returns(cython.bint) >    @cython.locals(a=cython.int, b=cython.int, c=cython.int) >    def c_compare(a,b): >        c = 5 >        retu

[Cython] pure mode quirk

2012-05-10 Thread Stefan Behnel
Hi, when declaring a C function in pure mode, you eventually end up with this: @cython.cfunc @cython.returns(cython.bint) @cython.locals(a=cython.int, b=cython.int, c=cython.int) def c_compare(a,b): c = 5 return a == b + c That is very verbose, making it hard to f