[Cython] [Bug] Generator comprehension not compiling

Carlos Pita carlosjosepita at gmail.com
Fri Oct 16 14:53:01 EDT 2015


Hi,

in cython 0.24.0a0 this:

----------
import cython as cy

@cy.cfunc
def f(cats):
    ''.join(c for c in cats)
----------

fails to compile with: Compiler crash in AnalyseDeclarationsTransform.

Nevertheless the following close variations do compile:

----------
import cython as cy

@cy.cfunc
def f(cats):
    ''.join([c for c in cats])
----------

----------
cdef f(cats):
    ''.join(c for c in cats)
----------

Cheers
--
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20151016/e0bfeb31/attachment.html>


More information about the cython-devel mailing list