Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'python.': 0.04; 'subject:bug': 0.04; 'exception,': 0.07; 'brilliant': 0.09; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'bypassing': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iterator': 0.16; 'okay,': 0.16; '16,': 0.16; 'protocol': 0.16; 'pm,': 0.16; 'header:In-Reply-To:1': 0.22; 'builds': 0.23; 'thus': 0.23; 'code': 0.24; 'received:209.85.214': 0.28; 'sat,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'does': 0.32; 'to:addr:python- list': 0.34; 'accepted': 0.36; 'issue': 0.37; 'but': 0.37; 'getting': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'patch': 0.38; 'steven': 0.38; 'run': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; "i'd": 0.40; 'your': 0.60; "we've": 0.62; 'our': 0.63; 'yourself': 0.68; 'yourself,': 0.74; 'subject:Possible': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Rrd3abb/QMoM9SvJz38+mPSSxVYLPA/lbb+NMp3g69s=; b=GwRZ+7r2ZnkO/1FG5II44PkcXotRWx1h1WsldZtHxw4+ye/5ovty//OmLFbUF4t8M2 WOkPMj1YEZ/HN55Ivs3dasumVNKs+x45P1I/M+4MLXaR6lutTbUEYof59kGqLIrVi7XN qLi/Be8tvsZhQJz8hKPKldeF9RecT5Osx3Hlw= MIME-Version: 1.0 In-Reply-To: <4e2108b0$0$29972$c3e8da3$5496439d@news.astraweb.com> References: <9f5ddd41-79a7-46a6-b5fe-dd94600d581a@j15g2000yqf.googlegroups.com> <4e2108b0$0$29972$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 16 Jul 2011 14:07:34 +1000 Subject: Re: Possible File iteration bug From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310789258 news.xs4all.nl 23852 [2001:888:2000:d::a6]:53809 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9596 On Sat, Jul 16, 2011 at 1:42 PM, Steven D'Aprano wrote: > Okay, we've come up with the solution of a new exception, PauseIteration, > that the iterator protocol will recognise. Now we have to: > > - write an implementation or patch adding that functionality; - and add it to our own personal builds of Python, thus bypassing the entire issue of getting it accepted into Python. Of course, this does mean that your brilliant code only works on your particular build of Python, but I'd say that this is the first step - before writing up the PEP, run it yourself and see whether you even like the way it feels. THEN, once you've convinced yourself, start convincing others (ie PEP). ChrisA