This is a follow-up to this question.
(Why / When) Is it preferable to use Py_ssize_t
for indexing? In the docs I just found
# Purists could use "Py_ssize_t" which is the proper Python type for
# array indices.
-> Does that mean always when indexing NumPy/Cython - array(s)/-views one should use Py_ssize_t
?
-> Is Py_ssize_t
e. g. an unsigned int
so that I can't used @cython.boundscheck(False)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…