Originally Posted by kovidgoyal
It would be nice to support negative indices for substr for "length from the end"
The result is x[start:end]. As it makes no sense for end to be zero, I used zero to indicate x[start:]. There is no ambiguity with the start field, so no hack was required.