Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'jones': 0.09; 'wrote:': 0.14; 'from:addr:awilliam': 0.16; 'from:addr:whitemice.org': 0.16; 'from:name:adam tauno williams': 0.16; 'message-id:@linux- yu4c.site': 0.16; 'received:72.14.190': 0.16; 'received:72.14.190.87': 0.16; 'received:mail.wmmi.net': 0.16; 'received:wmmi.net': 0.16; 'reply-to:addr:awilliam': 0.16; 'reply- to:addr:whitemice.org': 0.16; 'try/except': 0.16; "wouldn't": 0.18; 'header:In-Reply-To:1': 0.22; 'mon,': 0.22; 'received:72.14': 0.27; 'error': 0.29; 'problem': 0.29; 'subject:?': 0.29; 'it.': 0.31; 'determine': 0.31; 'to:addr :python-list': 0.32; 'worry': 0.33; 'subject:/': 0.36; 'report': 0.37; 'should': 0.37; 'either': 0.37; 'under': 0.39; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'would': 0.40; 'messages': 0.40; 'reply-to:no real name:2**0': 0.72; 'header:Reply-To:1': 0.72; 'constitute': 0.91 Subject: Re: Overuse of try/except/else? From: Adam Tauno Williams To: python-list@python.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 10 May 2011 07:36:42 -0400 Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: awilliam@whitemice.org 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: 9 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305027477 news.xs4all.nl 81474 [::ffff:82.94.164.166]:47687 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5065 On Mon, 2011-05-09 at 19:40 -0500, Kyle T. Jones wrote: > It has been hard for me to determine what would constitute overuse. The chronic problem is under use; so I wouldn't worry much about it. try/except should occur as often as is required for the application to either deal gracefully with the condition or report *meaningful* error messages to the user/administrator.