Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'syntax': 0.04; 'cursor': 0.09; 'benjamin': 0.16; 'bracket': 0.16; 'bracket,': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'jumps': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'subject:Problem': 0.16; 'to:name:python list': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'error': 0.23; 'cheers,': 0.24; '(or': 0.24; 'header:In-Reply-To:1': 0.27; 'matching': 0.30; 'view.': 0.31; 'subject:the': 0.34; 'subject:with': 0.35; "can't": 0.35; 'editor': 0.35; 'received:com.au': 0.36; 'shows': 0.36; 'charset:us-ascii': 0.36; 'sometimes': 0.38; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'is.': 0.60; 'john': 0.61; 'content- disposition:inline': 0.62; 'between': 0.67; 'close': 0.67; 'oscar': 0.84; 'standing': 0.84; 'bounce': 0.91; 'technique': 0.93; '2013': 0.98 Date: Fri, 21 Jun 2013 08:36:46 +1000 From: Cameron Simpson To: Python List Subject: Re: Problem with the "for" loop syntax MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) References: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=K8x6hFqI c=1 sm=1 a=wom5GMh1gUkA:10 a=GZs24lQ_rmAA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=0n0nKMa5IkwA:10 a=pGLkceISAAAA:8 a=y3Qtzq7Bwx0cDhtxkXEA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=ChdAjXE5lkUvdteQbhpnkQ==:117 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371767810 news.xs4all.nl 15905 [2001:888:2000:d::a6]:50055 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48827 On 20Jun2013 15:33, Oscar Benjamin wrote: | On 20 June 2013 04:11, Cameron Simpson wrote: | > I use vi/vim and it both shows the matching bracket when the cursor | > is on one and also have a keystroke to bounce the curser between | > this bracket and the matching one. | > | > If you suspect you failed to close a bracket, one approach is to | > go _below_ the syntax error (or right on it) and type a closing | > bracket. Then see where the editor thinks the opening one is. | | I use this technique sometimes and it works if the unclosed bracket is | still in view. Standing on a bracket, the '%' key jumps to the matching bracket. No need for it to be in view. Cheers, -- Cameron Simpson "Vy can't ve chust climb?" - John Salathe