Re: [Cython] Bug: bad C code generated for (some) "... and ... or ..." expressions

2012-06-08 Thread Dieter Maurer
Stefan Behnel wrote at 2012-6-8 08:50 +0200: >thanks for the report. > >Dieter Maurer, 07.06.2012 10:44: >> "cython 0.13" generates bad C code for the attached "pyx" file. > >Could you try the latest release? I would at least expect an error instead >of actually generating code. The latest release

Re: [Cython] Bug: bad C code generated for (some) "... and ... or ..." expressions

2012-06-07 Thread Stefan Behnel
Hi, thanks for the report. Dieter Maurer, 07.06.2012 10:44: > "cython 0.13" generates bad C code for the attached "pyx" file. Could you try the latest release? I would at least expect an error instead of actually generating code. > "cython" itself recognizes that it did something wrong and emi

[Cython] Bug: bad C code generated for (some) "... and ... or ..." expressions

2012-06-07 Thread Dieter Maurer
"cython 0.13" generates bad C code for the attached "pyx" file. "cython" itself recognizes that it did something wrong and emits ";" to the generated file: ... static __pyx_t_12cybug_and_or_pointer __pyx_f_12cybug_and_or_bug(PyObject *__pyx_v_o) { __pyx_t_12cybug_and_or_pointer __pyx_r; int