Sunday, May 26, 2013

cython wraparound problems

For performance reasons I was including the line

#cython: wraparound=False

in most of my Cython files. After an update to a newer versions of Cython (0.19) my Cython scripts started to crash. It took me some time to find out that combined with the wraparound=False line you cannot use [-1] as the index for the last element anymore (this is also written somewhere in the Cython documentation).

No comments:

Post a Comment