[Cython] Question on "numpy_common.pxi" in NumPy tests
Stefan Behnel
stefan_ml at behnel.de
Tue Mar 27 16:20:32 CEST 2012
Hi,
the NumPy related tests use a file "numpy_common.pxi" that contains this
useless code:
"""
cdef extern from *:
bint FALSE "0"
void import_array()
void import_umath()
if FALSE:
import_array()
import_umath()
"""
Does this serve any purpose? It currently leads to build failures of the
tests in C++ mode because the "import_umath()" call seems to inline code
with a bare "return" statement, which is not allowed in the module init
function (which returns a reference to the module).
Is there any reason why this can't just die?
Stefan
More information about the cython-devel
mailing list