Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'badly': 0.07; 'jerry': 0.16; 'subject:when': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'code,': 0.18; "i'd": 0.22; 'feature': 0.24; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.29; 'worked': 0.30; 'seconds': 0.30; '(and': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'too.': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'believe': 0.69; '2013': 0.84; 'construct': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=pATOz1gIGhjTgd8JCARXp+f1cix3V/zYpjQiT45JPrc=; b=lmlOrqsS4GRUmyJ+xtIFSjT3qWybT/s2PJl7jwBwscLPHfNkT1H0R9ZkSvcDdUZ33b 5EejRl3uasqeKXSIJifmG/qL/Fy5Kvf1O7JNGJdi8eOR6OEIly5KmakRtXwSPM8jDTGW P9R9VIA4ZqMUDG0fefrU4vd+zY/Vb2ZXv59EYO5F3WqFunLga2x4jlMSHiRR+XZAxa6E nwchGIiy2xiVn+zIAVkT3ffIOrg2tIvw6Z6LhuGfNMsGSV9ZCc4/A2icXQfri9kL4urF btrs4P7idJPNfFuKapTes5EPQS3B475c0xu581T7d1SZVcj38j1KvnWFPWFAp7wGumr+ jFxQ== MIME-Version: 1.0 X-Received: by 10.68.227.73 with SMTP id ry9mr4187924pbc.73.1358952788884; Wed, 23 Jan 2013 06:53:08 -0800 (PST) In-Reply-To: References: <2cc6791f-ba56-406c-a5b0-b23023caf4bb@googlegroups.com> <20130122163924.74038876@sampi> <20130122164835.74a0ebf6@sampi> <66a33143-c4e5-400d-b6eb-2305a345ca3e@ro7g2000pbb.googlegroups.com> <20130123122247.43031d2e@sampi> Date: Wed, 23 Jan 2013 09:53:08 -0500 Subject: Re: Else statement executing when it shouldnt From: Jerry Hill To: python-list@python.org Content-Type: text/plain; charset=UTF-8 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358952792 news.xs4all.nl 6875 [2001:888:2000:d::a6]:36679 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37476 On Wed, Jan 23, 2013 at 8:35 AM, Jussi Piitulainen wrote: >> The feature isn't bad, it's just very, very badly named. > > I believe it would read better - much better - if it was "for/then" > and "while/then" instead of "for/else" and "while/else". That's always been my opinion too. I'd remember how the construct worked if it was for/then (and while/then). Since seeing for/else always makes my brain lock up for a few seconds when I'm reading code, I don't bother using it. Jerry