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
>
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
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
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