Re: [Cython] Cython produces invalid C code

2015-04-22 Thread Michael Enßlin
Hi, On 23/04/15 06:25, Robert Bradshaw wrote: > I've made this an explicit error. thanks; I hope this will save future users some WTFs. ~mic_e signature.asc Description: OpenPGP digital signature ___ cython-devel mailing list cython-devel@python

Re: [Cython] Cython produces invalid C code

2015-04-22 Thread Robert Bradshaw
Extern functions can't have default arguments. I've made this an explicit error. On Wed, Apr 22, 2015 at 1:07 PM, Michael Enßlin wrote: > Hi everybody, > > Cython 0.21.1, from Debian Sid, and Cython 0.22, from Gentoo, produce > invalid C Code for the following .pyx file: > > > > $ cat test.pyx >

[Cython] Cython produces invalid C code

2015-04-22 Thread Michael Enßlin
Hi everybody, Cython 0.21.1, from Debian Sid, and Cython 0.22, from Gentoo, produce invalid C Code for the following .pyx file: $ cat test.pyx cimport cpython cdef extern from "test.h": cdef void foo(int i = 0) def bar(self): foo(0) $ cat test.h void foo(int i); $ cython test.py