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:
> https://github.com/cython/cython/blob/master/Cython/Compiler/ModuleNode.py#L2423
> 
> 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
> PyBaseExceptionObject]:
>             pass

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.

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to