I have discovered something peculiar in Cython 0.11.2.

Assume we have

   cdef np.ndarray[np.float64_t] y, z

and do something like

   return (y if (zi is None) else (y, z))

GCC complains about "assignment from incompatible pointer type" when 
compiling the generated C.

Whereas if I write this as

   if (zi is None):
       return y
   else:
       return (y,z)

GCC does not complain.

Is this a bug?




Sturla Molden
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to