A new directive which allows Cython to assume that integers passed to [] 
are not negative.

Currently buffers have the negative_indices option:

   object[int, negative_indices=False] arr = ...

but this can be cumbersome and less flexible. The rationale for not 
doing this in the first place was that it changes semantics during 
normal running rather than under exceptional circumstances, but now 
@cdivision has crossed that line anyway.

Also note that this could potentially apply to typed lists and tuples as 
well, if there's a benefit.

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to