[Cython] Minor bug: emitted junk line prevents compilation

Nikita Nemkin nikita at nemkin.ru
Sat Mar 16 21:39:33 CET 2013


I believe I have found a bit of broken/junk code.
This line produces an unpaired and unnecessary #if directive:
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  

and cimport it in another .pyx.

Best regards,
Nikita Nemkin

More information about the cython-devel mailing list