[Cython] Minor bug: emitted junk line prevents compilation
stefan_ml at behnel.de
Sat Mar 16 21:59:12 CET 2013
Nikita Nemkin, 16.03.2013 21:39:
> 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.
Yes, it's correctly used further down in the code. Thanks!
> 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
Why would you need to do that in your code?
> and cimport it in another .pyx.
It's sad that the cross-module importing and C-API code is so badly tested.
Any help to improve this situation will be very warmly appreciated.
More information about the cython-devel