Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-transit.tcx.org.uk!newsfeed.xs4all.nl!newsfeed6.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'c++,': 0.07; 'unexpected': 0.07; 'exceptions': 0.09; 'am,': 0.12; 'exception': 0.12; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; 'capturing': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parks': 0.16; 'propagate': 0.16; 'syntactic': 0.16; 'travis': 0.16; 'wrote:': 0.18; 'java,': 0.19; "aren't": 0.21; 'header:In- Reply-To:1': 0.22; 'code.': 0.26; 'mainly': 0.28; 'concern': 0.28; 'message-id:@mail.gmail.com': 0.28; 'generic': 0.29; 'nov': 0.29; 'class': 0.29; 'list': 0.32; 'tue,': 0.32; 'to:addr:python-list': 0.34; 'languages': 0.35; 'received:google.com': 0.37; "there's": 0.37; 'received:209.85': 0.38; 'listed': 0.38; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'more': 0.61; '2011': 0.61; 'forced': 0.67; 'series': 0.67; 'yourself': 0.69; 'wish': 0.70; '29,': 0.73; 'subject:Reference': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WP0U5QdeZMk17G8HeXMVnJcMVS/NG8b2FRkzn9CGfOs=; b=Fp0Hd/mWQb/QG8TzVHY5PZmBKphT7C3YSqpcA+bMRBbQFiVm/Lo5csO0SaNLDrwLoy kbFovZlUJoX42Yz92c28FRH6RPDYhgBG+UydxZ3Ue78b0s2pjq/6i+w8E2CGzYpuUA7h SyMrMrvkWr0iX33u/90niNC+c3oRgeobJtK70= MIME-Version: 1.0 In-Reply-To: References: <79379487-0081-4067-92ed-c6717652e1ff@y7g2000vbe.googlegroups.com> <4eb0af60-26b3-45d5-8aff-566505003d6a@m10g2000vbc.googlegroups.com> <9ji9t4FdphU1@mid.individual.net> Date: Tue, 29 Nov 2011 08:57:46 +1100 Subject: Re: Using the Python Interpreter as a Reference From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322517470 news.xs4all.nl 6894 [2001:888:2000:d::a6]:48565 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16362 On Tue, Nov 29, 2011 at 8:29 AM, Travis Parks wrote: > Languages that don't support > exceptions as part of their signature lead to capturing generic > Exception all throughout code. It is one of those features I wish .NET > had. At the same time, with my limited experience with Java, it has > been a massive annoyance. In Java, it mainly feels like syntactic salt. There's still a class of RuntimeExceptions that aren't listed in the signature, so you still have to concern yourself with the possibility that unexpected exceptions will propagate; and you're forced to decorate every method with the list of what it might propagate up, other than that. It's like const-decorating a series of functions in C++, only far less consequential and requiring far more typing. ChrisA