Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'ioerror': 0.09; 'oserror': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'code.': 0.20; "i'd": 0.22; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "i'm": 0.29; 'figure': 0.30; 'running': 0.32; 'program,': 0.34; 'received:google.com': 0.34; 'but': 0.36; 'subject:with': 0.36; 'should': 0.36; 'subject:: ': 0.38 X-Received: by 10.49.24.194 with SMTP id w2mr1651917qef.42.1362252913874; Sat, 02 Mar 2013 11:35:13 -0800 (PST) Newsgroups: comp.lang.python Date: Sat, 2 Mar 2013 11:35:13 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=207.102.131.95; posting-account=ABEwJgoAAAC1F6nSxfugvLwMw0aH_wrF References: <707df78f-9a67-4ce1-8dd3-095c75a7f7da@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 207.102.131.95 MIME-Version: 1.0 Subject: Re: Dealing with exceptions From: bvdp To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, bvdp 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: , Message-ID: Lines: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362252924 news.xs4all.nl 6958 [2001:888:2000:d::a6]:48537 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40357 > > IOError and OSError should cover all copy problems, I think. How do you know that? I can figure it out as well by running the program, but I'd like to make the determination of what to catch when I'm writing the code.