On Thu, Mar 28, 2013 at 7:01 AM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > Any string method that takes a starting offset requires the method to > walk the string byte-by-byte. I've even seen languages put responsibility > for dealing with that onto the programmer: the "start offset" is given in > *bytes*, not characters. I don't remember what language this was... it > might have been Haskell? Whatever it was, it horrified me.
Go does this. I remember because it came up in one of these threads, where jmf (or was it Ranting Rick?) was praising Go for just getting Unicode "right". -- http://mail.python.org/mailman/listinfo/python-list