Nikita Nemkin, 24.04.2013 09:48: > _mcp.pyx declares #cython: wraparound=False, any negative index is expected > to fail. > It worked previously because Cython was using PySequence_GetSlice > which of course is not sensitive to Cython directives. > > The only "fix" would be to produce a warning for constant negative indexes in > wraparound=False mode.
Good call. I added a warning: https://github.com/cython/cython/commit/f72eb8966ac1816279c81c01d721f0d4d795509b Let's see what that gives us. It most likely needs a bit more tuning to avoid false positives in known-to-be-safe cases, but since it's not clear to me what those are, it's just always emitting the warning for now. Stefan _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel