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

Chris Angelico rosuav at gmail.com
Fri Mar 29 01:33:52 EDT 2013


On Fri, Mar 29, 2013 at 2:34 PM, Neil Hodgson <nhodgson at iinet.net.au> wrote:
>    It doesn't horrify me - I've been working this way for over 10 years and
> it seems completely natural. You can wrap access in iterators that hide the
> byte offsets if you like. This then ensures that all operations on those
> iterators are safe only allowing the iterator to point at the start/end of
> valid characters.

But both this and your example of case conversion are, fundamentally,
iterating over the string. What if you aren't doing that? What if you
want to parse and process?

ChrisA



More information about the Python-list mailing list