Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3a.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.174 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.66; '*S*': 0.01; 'unlikely': 0.16; 'which,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'programming': 0.22; 'spread': 0.22; 'keyboard': 0.24; '>': 0.26; 'subject:/': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'tim': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'piece': 0.31; 'steven': 0.31; 'to:name:python-list': 0.33; 'advice': 0.35; 'received:google.com': 0.35; 'too': 0.37; 'easily': 0.37; 'to:addr :python-list': 0.38; 'bad': 0.39; 'weight': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; "you're": 0.61; 'due': 0.66; 'between': 0.67; 'hands,': 0.84; 'lying': 0.84; 'subject:try': 0.84; 'fur': 0.91; 'suffer': 0.93 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:to :content-type; bh=20jApYHbpdS9to1VGMemfUGjWgeeVwPSLmNZsGjpw8s=; b=vANdIVp4GS1UBlNdH1i8JD/Ov6G12/PgXOjIiDlBL9FwlmCetfG1B8+SSidqjuVowi m2NvTdVSHVO8kvw4XnHb2SAyvPCtyCa9q8xPEYbY9QIZqQCCaFBJSPeTcwFUHZspwWnI m2Joe68K/UEfDGNicmOiPX0fDq2KDML62+A7x/Ts84+cEMy7tyLXm/JAPkQAKFbvq3C6 8gZe/XpxZjzoAEo/IYxQPKjbmwxKMzNYtpcYysK/BIOlZR9EmTZFU/rZU0uNJfuv8bGi u8zjkFPdRZmeUkQCQjf0kpELHKXQmNb+8sczcTaxn876NAEuovgDBKMSS8AX89NELd97 AVmA== MIME-Version: 1.0 X-Received: by 10.182.55.100 with SMTP id r4mr35064359obp.47.1402447205246; Tue, 10 Jun 2014 17:40:05 -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:40:05 +1000 Subject: Re: try/except/finally From: Tim Delaney To: Python-List Content-Type: multipart/alternative; boundary=089e01537a047c49d904fb84af06 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: 54 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402447213 news.xs4all.nl 2974 [2001:888:2000:d::a6]:34093 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73146 --089e01537a047c49d904fb84af06 Content-Type: text/plain; charset=UTF-8 On 11 June 2014 10:00, 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." > Lying down, the weight is spread across the whole keyboard so you're unlikely to suffer extra keypresses due to the cat. So if you're a touch-typist that one may not be too bad (depending on how easily their fur gets up your nose). Now, a cat *standing* on the keyboard, between you and the monitor, and rubbing his head against your hands, is a whole other matter. Tim Delaney --089e01537a047c49d904fb84af06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 1 June 2014 10:00, Steven D'Aprano <steve+comp.lang= .python@pearwood.info> 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 keyb= oard."

Lying down, the weight is s= pread across the whole keyboard so you're unlikely to suffer extra keyp= resses due to the cat. So if you're a touch-typist that one may not be = too bad (depending on how easily their fur gets up your nose).

Now, a cat *standing* on the keyboard, between you and = the monitor, and rubbing his head against your hands, is a whole other matt= er.

Tim Delaney=C2=A0
--089e01537a047c49d904fb84af06--