[Cython] Minor bug: emitted junk line prevents compilation
Nikita Nemkin
nikita at nemkin.ru
Sat Mar 16 21:39:33 CET 2013
Hi,
I believe I have found a bit of broken/junk code.
This line produces an unpaired and unnecessary #if directive:
https://github.com/cython/cython/blob/master/Cython/Compiler/ModuleNode.py#L2423
The fix is to simply remove it.
In case you are interested in how to hit this line, declare in some .pxd:
cdef extern from "Python.h":
ctypedef class __builtin__.BaseException [object
PyBaseExceptionObject]:
pass
and cimport it in another .pyx.
Best regards,
Nikita Nemkin
More information about the cython-devel
mailing list