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 cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel