Re: [Cython] [Bug] Don't compile lambda with tuple argument.

2015-11-09 Thread yi huang
me, v)): ^ /private/tmp/test.pyx:3:18: Empty declarator ``` On Tue, Nov 10, 2015 at 8:01 AM, yi huang wrote: > λ $ cat /tmp/test.pyx > f = lambda (name,v):True > > λ $ cython /tmp/test.pyx > > Error compiling Cython file: >

[Cython] [Bug] Don't compile lambda with tuple argument.

2015-11-09 Thread yi huang
λ $ cat /tmp/test.pyx f = lambda (name,v):True λ $ cython /tmp/test.pyx Error compiling Cython file: ... f = lambda (name,v):True ^ /tmp/test.pyx:1:19: Empt

Re: [Cython] A bug when declare array.

2013-08-27 Thread yi huang
I just chooses a large enough buffer size, there is not much to waste anyway. On Tue, Aug 27, 2013 at 3:43 PM, Sturla Molden wrote: > > > > Den 22. aug. 2013 kl. 06:01 skrev Robert Bradshaw : > >> On Sat, Aug 17, 2013 at 3:31 AM, yi huang wrote: >>> I use cython

[Cython] A bug when declare array.

2013-08-19 Thread yi huang
I use cython 0.19.1, when compile following code: cdef void some_function(): cdef char buf[sizeof(long)*8/3+6] Got error message: Error compiling Cython file: ... cdef void some_function(): cdef char buf[sizeof(long)*8/3+6]