Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cc:addr:python-list': 0.11; '10:00': 0.16; 'any.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hmm.': 0.16; 'which,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'programming': 0.22; 'cc:addr:python.org': 0.22; "haven't": 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'commonly': 0.31; "d'aprano": 0.31; 'piece': 0.31; 'steven': 0.31; 'advice': 0.35; 'received:google.com': 0.35; 'heard': 0.39; 'subject:try': 0.84; 'to:none': 0.92; 'taught': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=3Kjgb4nIQxUb9gICDmiWbT6tHRa1KCDE2Txyljbsr8Y=; b=XgcSc7jUtPOHjNlF8TbLIu3vHbqGL+b6hpMIFlAgRvKDuEbvIxK6NKfnxL1ksEEwge aFPnO7oJuMFNwwFjwoo7xoodVokdcU4IW6RgjhD4QOkWBMKO6Q2ixfYGrrndGHOBabkI tcub1GFS/nztsajxHDs6CzxUps4gSfQLPnEnv9r6r+T+oA00YMiAbGWoXXibCzI2YJGt tVDKNoWcjj2mJb7W0H16DyumWmu7Dhc1zkI4TrRKm57ZN5Ji6MuO7/SSoUBqyN3jVgFU 1+URGiaFX6KvqH1Z+C/UUt31tNppx7itVc4GInaaGphTAj6TqyJzkG5saR8KOyqrXjRa QBIg== MIME-Version: 1.0 X-Received: by 10.58.195.130 with SMTP id ie2mr36117136vec.3.1402445539985; Tue, 10 Jun 2014 17:12:19 -0700 (PDT) In-Reply-To: <53979c30$0$29988$c3e8da3$5496439d@news.astraweb.com> References: <0a89c96d-de62-42ad-be48-6107ce10d215@googlegroups.com> <539396F3.5090508@stoneleaf.us> <2e94b972-a630-4190-bc33-1074eb3278e3@googlegroups.com> <53979c30$0$29988$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 11 Jun 2014 10:12:19 +1000 Subject: Re: try/except/finally From: Chris Angelico Cc: "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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402445543 news.xs4all.nl 2862 [2001:888:2000:d::a6]:53468 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73143 On Wed, Jun 11, 2014 at 10:00 AM, Steven D'Aprano wrote: > On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: > >> I don't know >> a single piece of programming advice which, if taken as an inviolate >> rule, doesn't at some point cause suboptimal code. > > "Don't try to program while your cat is sleeping on the keyboard." Hmm. I've never actually heard that one. Is it commonly taught in programming classes? Because I haven't taken any. ChrisA