Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Stefan Behnel
mark florisson, 24.01.2012 14:53: > On 24 January 2012 11:37, Konrad Hinsen wrote: >> Compiling the attached Cython file produced the attached C file which >> has errors in lines 532-534: >> >> __pyx_v_self->xx = None; >> __pyx_v_self->yy = None; >> __pyx_v_self->zz = None; >> >> There is no C s

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Vitja Makarov
2012/1/25 mark florisson : > On 24 January 2012 19:18, Dag Sverre Seljebotn > wrote: >> On 01/24/2012 08:05 PM, Vitja Makarov wrote: >>> >>> 2012/1/24 mark florisson: On 24 January 2012 18:30, Vitja Makarov  wrote: > > 2012/1/24 Robert Bradshaw: >> >> On Tue, Jan 24, 2012

Re: [Cython] inline defnode calls

2012-01-24 Thread Vitja Makarov
2012/1/25 mark florisson : > I just noticed the inline defnode call code. When I try to compile > with 'cython -Xoptimize.inline_defnode_calls=True test.pyx' with the > following code: > > def foo(x): print foo > foo(10) > > I get > > Error compiling Cython file: > -

Re: [Cython] 0.16 release

2012-01-24 Thread Robert Bradshaw
On Mon, Jan 23, 2012 at 2:27 AM, mark florisson wrote: > Hey, > > It's been almost three months since we talked about a 0.16 release, I > think it's quite ready. It would already be a big release, it would be > good to see how people like it, and to catch any issues etc before we > pile on more fe

[Cython] inline defnode calls

2012-01-24 Thread mark florisson
I just noticed the inline defnode call code. When I try to compile with 'cython -Xoptimize.inline_defnode_calls=True test.pyx' with the following code: def foo(x): print foo foo(10) I get Error compiling Cython file: ... def foo(x):

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread mark florisson
On 24 January 2012 19:18, Dag Sverre Seljebotn wrote: > On 01/24/2012 08:05 PM, Vitja Makarov wrote: >> >> 2012/1/24 mark florisson: >>> >>> On 24 January 2012 18:30, Vitja Makarov  wrote: 2012/1/24 Robert Bradshaw: > > On Tue, Jan 24, 2012 at 6:09 AM, Vitja Makarov >  wrote:

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Dag Sverre Seljebotn
On 01/24/2012 08:05 PM, Vitja Makarov wrote: 2012/1/24 mark florisson: On 24 January 2012 18:30, Vitja Makarov wrote: 2012/1/24 Robert Bradshaw: On Tue, Jan 24, 2012 at 6:09 AM, Vitja Makarov wrote: 2012/1/24 mark florisson: On 24 January 2012 11:37, Konrad Hinsen wrote: Compiling the at

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Vitja Makarov
2012/1/24 mark florisson : > On 24 January 2012 18:30, Vitja Makarov wrote: >> 2012/1/24 Robert Bradshaw : >>> On Tue, Jan 24, 2012 at 6:09 AM, Vitja Makarov >>> wrote: 2012/1/24 mark florisson : > On 24 January 2012 11:37, Konrad Hinsen > wrote: >> Compiling the attached Cyth

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread mark florisson
On 24 January 2012 18:30, Vitja Makarov wrote: > 2012/1/24 Robert Bradshaw : >> On Tue, Jan 24, 2012 at 6:09 AM, Vitja Makarov >> wrote: >>> 2012/1/24 mark florisson : On 24 January 2012 11:37, Konrad Hinsen wrote: > Compiling the attached Cython file produced the attached C file which

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Vitja Makarov
2012/1/24 Robert Bradshaw : > On Tue, Jan 24, 2012 at 6:09 AM, Vitja Makarov > wrote: >> 2012/1/24 mark florisson : >>> On 24 January 2012 11:37, Konrad Hinsen wrote: Compiling the attached Cython file produced the attached C file which has errors in lines 532-534:  __pyx_v_s

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Robert Bradshaw
On Tue, Jan 24, 2012 at 6:09 AM, Vitja Makarov wrote: > 2012/1/24 mark florisson : >> On 24 January 2012 11:37, Konrad Hinsen wrote: >>> Compiling the attached Cython file produced the attached C file which >>> has errors in lines 532-534: >>> >>>  __pyx_v_self->xx = None; >>>  __pyx_v_self->yy =

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Vitja Makarov
2012/1/24 mark florisson : > On 24 January 2012 11:37, Konrad Hinsen wrote: >> Compiling the attached Cython file produced the attached C file which >> has errors in lines 532-534: >> >>  __pyx_v_self->xx = None; >>  __pyx_v_self->yy = None; >>  __pyx_v_self->zz = None; >> >> There is no C symbol

Re: [Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread mark florisson
On 24 January 2012 11:37, Konrad Hinsen wrote: > Compiling the attached Cython file produced the attached C file which > has errors in lines 532-534: > >  __pyx_v_self->xx = None; >  __pyx_v_self->yy = None; >  __pyx_v_self->zz = None; > > There is no C symbol "None", so this doesn't compile. > >

[Cython] Bug in Cython producing incorrect C code

2012-01-24 Thread Konrad Hinsen
Compiling the attached Cython file produced the attached C file which has errors in lines 532-534: __pyx_v_self->xx = None; __pyx_v_self->yy = None; __pyx_v_self->zz = None; There is no C symbol "None", so this doesn't compile. I first noticed the bug in Cython 0.15, but it's still in the