Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Assignment Versus Equality Date: Tue, 28 Jun 2016 17:26:08 +1000 Lines: 21 Message-ID: References: <8a53c069-ca13-47bf-a24e-d2393a018b22@googlegroups.com> <576fd6e0$0$1617$c3e8da3$5496439d@news.astraweb.com> <2588c5b2-4b6f-cfbb-f91e-4db03aa50318@icloud.com> <8fbe89a6-c273-0fc9-820b-6ac629e6e769@gmail.com> <02e2d3f4-0198-4cdf-a493-45a248c03aea@googlegroups.com> <577129e0$0$1596$c3e8da3$5496439d@news.astraweb.com> <5771cd54$0$1589$c3e8da3$5496439d@news.astraweb.com> <4805e31e-040d-4caf-a79e-af56f93f6daf@googlegroups.com> <57720e58$0$1530$c3e8da3$5496439d@news.astraweb.com> <3bd25897-8ecb-4a27-ab22-220677551f41@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de Y1wEjqmW/DOmvAwI+hA0ngNL7zVNSuDd75J+/z7egfAA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'oh,': 0.09; 'url:github': 0.09; '<>.': 0.11; '(error)': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'break;': 0.22; 'lawrence': 0.22; 'header:In-Reply-To:1': 0.24; 'right.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'tue,': 0.34; 'received:google.com': 0.35; 'pm,': 0.36; 'subject:: ': 0.37; 'why': 0.39; 'still': 0.40; 'url:c': 0.76; 'chrisa': 0.84; 'url:master': 0.84; 'to:none': 0.91; 'not:': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-transfer-encoding; bh=CCx2wF0B9TuqWJjC2NL+0oWmWs+Cec6E2XHLa/aOOck=; b=KFvHpd0o5fi+tpRwKE+xjzB2/wrE7Ry7Bb2jrdKP8dBXFnV+lmo3Zg3zMt0K2nxV1T 27s6ZnWFlmKLUOSRr1jZyLFnZFodw5KQWkuIAkTLVR3IoFDRUV/5pJh06WaVAl9VdMgx vpFvHJoILw+8k1yHwBS3jm60aBQGmDhKKovp27F1O7hOKpDvQn8VqFckehkxxKWE31ls gk9j0CxZQtB2IRKHeYgpenOEt2jtwZbTFCi8rgt9CJ96iupEjERiUzE2ZtU8yw0ls4/j EIw8m7axaVq47UJe6nHhgldmeip//X34yMitDABwMqtI1u/W39Rqwg+Q1bKLeVLD+fgO HzyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc:content-transfer-encoding; bh=CCx2wF0B9TuqWJjC2NL+0oWmWs+Cec6E2XHLa/aOOck=; b=IkMJ0tsSrwR2JFsXni0IGRaWbiUjcxlaOgE5j05IWlHxOex3H0mHsu7FPa078Rclqb 0M+ehpafDH2E/hdNYMNLPkPfhoC48yR+lpLenz3luk3aGsQp6JHx6DALN3RBxGnHKKXA RfYJGZpYj+kI+BnltQFYl2/WSH/tR7nmXiZVFQG+fVL+Fr5MJFUrExF9SEXRQoqfrJ5O mhfw3Z7gihPjKZyejo/lU/gu1MbLZXiLS6vQxDbqkwBtryw4AIsG6+aAm5VhFpBbWUXh SCj7b6bZlAMTO6IJFXNjiKU+MTglSLid/+Cmni51J9XmvRuE+B+wnl9jJ41USvHvdvPl OHNw== X-Gm-Message-State: ALyK8tJKAGAqpqrx2Y9JDLAhn2ZJ2kQiteEQorTEzzquNAHyLCgRn0oYGZx+CAzS9FD35zuT1iuhEV2Pq7FySg== X-Received: by 10.28.67.69 with SMTP id q66mr13869108wma.81.1467098769352; Tue, 28 Jun 2016 00:26:09 -0700 (PDT) In-Reply-To: <3bd25897-8ecb-4a27-ab22-220677551f41@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: X-Mailman-Original-References: <8a53c069-ca13-47bf-a24e-d2393a018b22@googlegroups.com> <576fd6e0$0$1617$c3e8da3$5496439d@news.astraweb.com> <2588c5b2-4b6f-cfbb-f91e-4db03aa50318@icloud.com> <8fbe89a6-c273-0fc9-820b-6ac629e6e769@gmail.com> <02e2d3f4-0198-4cdf-a493-45a248c03aea@googlegroups.com> <577129e0$0$1596$c3e8da3$5496439d@news.astraweb.com> <5771cd54$0$1589$c3e8da3$5496439d@news.astraweb.com> <4805e31e-040d-4caf-a79e-af56f93f6daf@googlegroups.com> <57720e58$0$1530$c3e8da3$5496439d@news.astraweb.com> <3bd25897-8ecb-4a27-ab22-220677551f41@googlegroups.com> Xref: csiph.com comp.lang.python:110664 On Tue, Jun 28, 2016 at 5:12 PM, Lawrence D=E2=80=99Oliveiro wrote: > . do { /* once */ if (error) break; ... } while (false); do_cleanup; Why not: if (error) goto cleanup; ... cleanup: do_cleanup; Oh, right. XKCD 292. I still think it's better to use the goto, though - you just need velociraptor repellent. ChrisA