Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Code will never be executed warning in for-loop #3172
The following code generates a warning for me using Cython 0.29.13 and Python 3.7.3.
def my_for(): cdef Py_ssize_t i cdef int arr cdef int[::1] arr_mv = <int[:4:1]>(&arr) for i in range(4): arr_mv[i] = 0