Re: [Cython] Cython mishandles None in slices

2013-04-12 Thread Stefan Behnel
Bryan O'Sullivan, 13.04.2013 05:02: > Here are two lines of valid Python: > > >>> 'abc'[None:2] > 'ab' > >>> 'abc'[1:None] > 'bc' > > If I try this in code that I compile with Cython, it throws an exception: > > TypeError: 'NoneType' object cannot be interpreted as an index Have you tried it wi

[Cython] Cython mishandles None in slices

2013-04-12 Thread Bryan O'Sullivan
Here are two lines of valid Python: >>> 'abc'[None:2] 'ab' >>> 'abc'[1:None] 'bc' If I try this in code that I compile with Cython, it throws an exception: TypeError: 'NoneType' object cannot be interpreted as an index ___ cython-devel mailing list cyt