[Cython] Bug in C code generation

2014-04-30 Thread Ulf Worsoe
Hi, I have encounterered a bug in the following situation with Cython 0.20.1: cdef funname(): cdef numpy.ndarray[numpy.int32_t,ndim=1] myvar if True: ... block that never initializes myvar else ... block that initializes myvar The resulting C code does not declare the variable for

[Cython] GCC Pxd

2014-04-30 Thread Philip Herron
Hey all, Some of you may remember a project i worked on for GSoC 2012, i wasn't really happy with the project over all for a long time it basicaly required at the time people to be running GCC from latest SVN/GIT for it to work correctly. Now gcc >= 4.7 is becoming more normal, so i went back int