[Cython] About IndexNode and unicode[index]

Stefan Behnel stefan_ml at behnel.de
Sat Mar 2 19:47:01 CET 2013


Zaur Shibzukhov, 02.03.2013 18:55:
> 2013/3/2 Stefan Behnel:
>>> I think you could even pass in two flags, one for wraparound and one for
>>> boundscheck, and then just evaluate them appropriately in the existing "if"
>>> tests above. That should allow both features to be supported independently
>>> in a fast way.
>>
>> https://github.com/scoder/cython/commit/cc4f7daec3b1f19b5acaed7766e2b6f86902ad94
> 
> It seems to include the following directive at the beginning of the
> tests (which tests indices for lists, tuples and unicode):
> 
> #cython: boundscheck=True
> #cython: wraparound=True
> 
> as default mode for testing?

Yes, although they would appear redundant here.

Stefan



More information about the cython-devel mailing list