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

2012-02-12 Thread Vitja Makarov
2012/2/12 mark florisson : > On 12 February 2012 14:06, Vitja Makarov wrote: >> 2012/2/4 Vitja Makarov : >>> 2012/1/26 mark florisson : On 26 January 2012 19:27, Stefan Behnel wrote: > mark florisson, 26.01.2012 20:15: >> On 26 January 2012 18:53, Stefan Behnel wrote: >>> mark fl

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

2012-02-12 Thread mark florisson
On 12 February 2012 14:06, Vitja Makarov wrote: > 2012/2/4 Vitja Makarov : >> 2012/1/26 mark florisson : >>> On 26 January 2012 19:27, Stefan Behnel wrote: mark florisson, 26.01.2012 20:15: > On 26 January 2012 18:53, Stefan Behnel wrote: >> mark florisson, 26.01.2012 16:20: >>>

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

2012-02-12 Thread Vitja Makarov
2012/2/4 Vitja Makarov : > 2012/1/26 mark florisson : >> On 26 January 2012 19:27, Stefan Behnel wrote: >>> mark florisson, 26.01.2012 20:15: On 26 January 2012 18:53, Stefan Behnel wrote: > mark florisson, 26.01.2012 16:20: >> I think this problem can trivially be solved by creating

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

2012-02-03 Thread Vitja Makarov
2012/1/26 mark florisson : > On 26 January 2012 19:27, Stefan Behnel wrote: >> mark florisson, 26.01.2012 20:15: >>> On 26 January 2012 18:53, Stefan Behnel wrote: mark florisson, 26.01.2012 16:20: > I think this problem can trivially be solved by creating a ProxyNode > that should ne

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

2012-01-26 Thread mark florisson
On 26 January 2012 19:27, Stefan Behnel wrote: > mark florisson, 26.01.2012 20:15: >> On 26 January 2012 18:53, Stefan Behnel wrote: >>> mark florisson, 26.01.2012 16:20: I think this problem can trivially be solved by creating a ProxyNode that should never be replaced by any transform,

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

2012-01-26 Thread Stefan Behnel
mark florisson, 26.01.2012 20:15: > On 26 January 2012 18:53, Stefan Behnel wrote: >> mark florisson, 26.01.2012 16:20: >>> I think this problem can trivially be solved by creating a ProxyNode >>> that should never be replaced by any transform, but it's argument may >>> be replaced. So you wrap sel

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

2012-01-26 Thread mark florisson
On 26 January 2012 18:53, Stefan Behnel wrote: > mark florisson, 26.01.2012 16:20: >> On 26 January 2012 06:39, Vitja Makarov wrote: >>> 2012/1/25 Stefan Behnel: Back to the old idea of separating the type analysis into 1) a basic typing, inference and entry creation step and 2) a proper

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

2012-01-26 Thread mark florisson
On 26 January 2012 18:51, Vitja Makarov wrote: > 2012/1/26 mark florisson : >> On 26 January 2012 06:39, Vitja Makarov wrote: >>> 2012/1/25 Stefan Behnel : mark florisson, 24.01.2012 14:53: > On 24 January 2012 11:37, Konrad Hinsen wrote: >> Compiling the attached Cython file produce

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

2012-01-26 Thread Stefan Behnel
mark florisson, 26.01.2012 16:20: > On 26 January 2012 06:39, Vitja Makarov wrote: >> 2012/1/25 Stefan Behnel: >>> Back to the old idea of separating the type analysis into 1) a basic >>> typing, inference and entry creation step and 2) a proper type analysis, >>> coercion, etc. step. >>> >> >> Yea

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

2012-01-26 Thread Vitja Makarov
2012/1/26 mark florisson : > On 26 January 2012 06:39, Vitja Makarov wrote: >> 2012/1/25 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 5

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

2012-01-26 Thread mark florisson
On 26 January 2012 06:39, Vitja Makarov wrote: > 2012/1/25 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->x

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

2012-01-25 Thread Vitja Makarov
2012/1/25 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_sel

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

2012-01-25 Thread Stefan Behnel
mark florisson, 24.01.2012 21:28: > I must say though, the following would look a bit weird: > > a = b[:] = c[:, :] = d > > as you always expect a kind of "cascade", e.g. you expect c[:, :] to > be assignable to b[:], or 'a', but none of that may be true at all. That's normal for a typed lan

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

2012-01-25 Thread Dag Sverre Seljebotn
On 01/25/2012 07:59 AM, Vitja Makarov wrote: 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 Makarovwrote: 2012/1/24 Robert Bradshaw: On Tue, Jan

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