Cython “Not allowed in a constant expression”, boundscheck False doesn't work
I am relatively new to Cython and have encountered an error that my research has failed me on (I am using Python3 in spyder and my Sython version is 0.26) I tried this: import cython @cython.boundscheck(False) def boundtest(): cdef int r=4 cdef double l[3] and it works fine. But then I tried this: import cython @cython.boundscheck(False) def boundtest(): cdef int r=4 cdef double l[r] and I receive the error [1/1] Cythonizing test.pyx Error compiling Cython file: ------------------------------------------------------------ ... import cython @cython.boundscheck(False) def boundtest(): cdef int r