robertwb / issues-import-test

0 stars 0 forks source link

Bad code generated for closures in cdef methods #87

Open robertwb opened 8 years ago

robertwb commented 8 years ago

Reported by eric remo reynolds on 22 Jul 2015 23:56 UTC

cdef class A:
    cdef list x

    def __init__(self):
        self.x = [1,2,3]

    cdef f(self):
        pass

cdef class B(A):
    cdef f(self):
        z = tuple(None for y in self.x)

Migrated-From: http://trac.cython.org/ticket/854

robertwb commented 8 years ago

Modified by scoder on 9 Aug 2015 13:15 UTC