Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Fri, 29 Mar 2013 00:49:23 -0500 Date: Fri, 29 Mar 2013 16:46:14 +1100 From: Neil Hodgson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.python Subject: Re: flaming vs accuracy [was Re: Performance of int/long in Python 3] References: <0b779c80-4f50-4716-8c30-47755c15f304@m12g2000yqp.googlegroups.com> <5153a12d$0$29998$c3e8da3$5496439d@news.astraweb.com> <987c4bd9-0e5e-4387-9c78-1075a77d3c47@c6g2000yqh.googlegroups.com> <51543f45$0$29998$c3e8da3$5496439d@news.astraweb.com> <-LGdnWTpyKcdkcjMnZ2dnUVZ_jCdnZ2d@westnet.com.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 12 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 210.84.0.186 X-Trace: sv3-xABgnWY6Q60ETai0WrVDhOSy5MFRdXVuCJQvBZjAMQej4iaUqKn+1a76tWf5YzpOmxTwv2ridR1ECBv!7H1cOC7Tntx1wx+TL4E2YXTwKgH3lrvWZgeAhVwXdKjiRbmyVchv4ajEueLJ0WFIlFRPGjiaoGl4!1APcmtOeRdx186kiRnw= X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2582 X-Received-Bytes: 2723 Xref: csiph.com comp.lang.python:42226 Chris Angelico: > 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? Parsing is also normally a scanning operation. If you want to process pieces of the string based on the parse then you remember the positions (as iterators) at the significant places and extract/process the data based on those positions. Neil