Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: for / while else doesn't make sense Date: Wed, 15 Jun 2016 11:54:01 -0400 Lines: 13 Message-ID: References: <9e7b6ded-15ad-490a-9842-b3da5d8a048d@googlegroups.com> <575d3430$0$11108$c3e8da3@news.astraweb.com> <575e167a$0$1608$c3e8da3$5496439d@news.astraweb.com> <575f6f58$0$1591$c3e8da3$5496439d@news.astraweb.com> <036dbf77-9483-4c71-a86b-f03cbf55cc3b@googlegroups.com> <5760c795$0$1609$c3e8da3$5496439d@news.astraweb.com> <26329884-d598-4f32-87b8-d75a3d109d20@googlegroups.com> <1465998697.330207.638463505.7EA18520@webmail.messagingengine.com> <97fd5175-0cc4-449d-a56d-bf7e238cbea3@googlegroups.com> <1466006041.357579.638625625.6C5C4E1D@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de eGNWa/cmToUM/ftnjQgfgA9NRETlCpGBNkV6VCk6wMfg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'braces': 0.09; 'called.': 0.09; 'optional': 0.09; 'received:internal': 0.09; 'subject:while': 0.09; 'bug': 0.10; 'wed,': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; '(the': 0.22; 'header:In-Reply-To:1': 0.24; 'appear': 0.26; 'function': 0.28; '15,': 0.30; 'generally': 0.32; 'statement': 0.32; 'could': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'anything': 0.38; 'to:addr:python.org': 0.40; 'called': 0.40; 'claim': 0.61; 'body': 0.61; 'header:Message- Id:1': 0.61; 'caused': 0.61; 'real': 0.62; 'subject: / ': 0.63; 'else.': 0.66; 'here': 0.66; 'break.': 0.84; 'flaw': 0.84; 'subject:else': 0.84; 'subject:sense': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=8usV7dtBF2ukN45rTY0ssc9ysKE=; b=sG8Sm2 2qfA9L4PH3stVizaQRI+1ezgepJSa0QPLJBrDk14Y/c4TbVlMQqAuwi7ZnQIk+5g hrv+g2d2338QSI5H5q4j5Xz7INyL2XYlCGJQT5f4eboueNO3vnE4btL41suPV1Tc j4MJ/GndHr98/Po8x+lgrI9lb+uXM5ioHtucM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=8usV7dtBF2ukN45 rTY0ssc9ysKE=; b=aqLM9DFycS18AlJYwbGqU9dBn5sozs7lhZFpEpzkbapb+kr p5SjAr1bRLnkH8pY7GVOjr1+MhXg3X2OgfLQ4GMePzRWRyfaJHpX2cx/9DfHO+8A ybLGaZ1ojpMY51pCF2Bj96Ggcz90HC1H6lo3KRzbpRrIdKqx3QlgKwzkduaA= X-Sasl-Enc: VhNE3dNvrzhvU1jzjzuysj4TjFX0KAMwbaZLP0eeQRd3 1466006041 X-Mailer: MessagingEngine.com Webmail Interface - ajax-aff28cd1 In-Reply-To: <97fd5175-0cc4-449d-a56d-bf7e238cbea3@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1466006041.357579.638625625.6C5C4E1D@webmail.messagingengine.com> X-Mailman-Original-References: <9e7b6ded-15ad-490a-9842-b3da5d8a048d@googlegroups.com> <575d3430$0$11108$c3e8da3@news.astraweb.com> <575e167a$0$1608$c3e8da3$5496439d@news.astraweb.com> <575f6f58$0$1591$c3e8da3$5496439d@news.astraweb.com> <036dbf77-9483-4c71-a86b-f03cbf55cc3b@googlegroups.com> <5760c795$0$1609$c3e8da3$5496439d@news.astraweb.com> <26329884-d598-4f32-87b8-d75a3d109d20@googlegroups.com> <1465998697.330207.638463505.7EA18520@webmail.messagingengine.com> <97fd5175-0cc4-449d-a56d-bf7e238cbea3@googlegroups.com> Xref: csiph.com comp.lang.python:109980 On Wed, Jun 15, 2016, at 10:20, Rustom Mody wrote: > Claim is that the damaging propensities of goto are replicable with > break. The "damaging propensity" in this particular case simply comes from the fact that it's a statement that can appear in the body of an if statement (the real flaw that caused the bug here here was the optional braces of the if statement), which is just as true of anything else. It could have called a function that it shouldn't have called. But a lot of people do claim that break should be generally "considered harmful" just like goto and never used at all because of this isomorphism.