Re: [Cython] Closure Issue

2010-07-07 Thread Robert Bradshaw
On Wed, Jul 7, 2010 at 8:22 AM, Chuck Blake wrote: > The code generated by the following compiles without error but then > tries to INCREF a null pointer for x (all for closures branch tip): > >    cdef f(x):                # def  here => works fine >        def g(y): return y*x  # cdef here => co

[Cython] Closure Issue

2010-07-07 Thread Chuck Blake
The code generated by the following compiles without error but then tries to INCREF a null pointer for x (all for closures branch tip): cdef f(x):# def here => works fine def g(y): return y*x # cdef here => compile error return g(x) # faults@ INCREF(