flaming vs accuracy [was Re: Performance of int/long in Python 3]

Ian Kelly ian.g.kelly at gmail.com
Thu Mar 28 12:01:06 EDT 2013


On Thu, Mar 28, 2013 at 7:01 AM, Steven D'Aprano
<steve+comp.lang.python at 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".



More information about the Python-list mailing list