Compiler crash when using an enum imported from another pxd

47 views
Skip to first unread message

Emmanuel Gil Peyrot

unread,
Apr 14, 2016, 2:22:03 PM4/14/16
to cython...@googlegroups.com
Hello,

When I cythonize a module using a cimported cdef enum from a different
pxd, I get a compiler crash in AnalyseExpressionsTransform (see
attached traceback).

Here is the code:


# package/test.pyx

from ._test cimport AnEnum

def func(self):
print(AnEnum.VALUE)


# package/_test.pxd

cdef enum AnEnum:
VALUE = 1

--
Emmanuel Gil Peyrot
traceback.txt

Philip Herron

unread,
Jul 19, 2016, 7:32:24 AM7/19/16
to cython-users, link...@linkmauve.fr
Did you get a work around/fix for this?
Reply all
Reply to author
Forward
0 new messages