Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.01; 'exceptions': 0.09; 'subject:Function': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'paradigm.': 0.16; 'parks': 0.16; 'said.': 0.16; 'subject:Checking': 0.16; 'travis': 0.16; 'mon,': 0.16; 'wrote:': 0.16; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'happen.': 0.23; 'aug': 0.24; 'code': 0.25; 'developing': 0.26; 'message- id:@mail.gmail.com': 0.29; 'error': 0.32; 'to:addr:python-list': 0.33; 'checking': 0.34; 'received:209.85.161': 0.35; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; '29,': 0.67; 'industry': 0.75; '10:20': 0.84; 'standards.': 0.91 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=FFWboJEe0rmBnbjJbVgs+3JrspEbjCDoL2oHByWrkC8=; b=hplmIq8sL9hp0bPwC2OY+nxz7ZG5yMlJdhF3SmK1F3jfk2BsUXVagmaetC6CvH+LjP 7Tt6q0gi7MKwP/aZi2lNOeeJTf6abMFQYWzpRU/TRLm+xoXW0MuGIEbj8lPgEBw0CrkC LP3MmPpAFtO64BNMTueON94A7yCDtlmGQeGPI= MIME-Version: 1.0 In-Reply-To: <9c9c95ed-e2d6-4529-84e2-88b495e3f23e@dp9g2000vbb.googlegroups.com> References: <5176c3dc-9270-46fe-a4d3-9dc2e9e97da5@q2g2000vbz.googlegroups.com> <9c9c95ed-e2d6-4529-84e2-88b495e3f23e@dp9g2000vbb.googlegroups.com> Date: Mon, 29 Aug 2011 10:27:53 +1000 Subject: Re: Checking Signature of Function Parameter 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314577676 news.xs4all.nl 2465 [2001:888:2000:d::a6]:36377 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12362 On Mon, Aug 29, 2011 at 10:20 AM, Travis Parks wrote: > Maybe I should give up on it, like you said. I am still familiarizing > myself with the paradigm. I want to make sure I am developing code > that is consistent with the industry standards. > In Python, the industry standard is "easier to ask forgiveness than permission" - that is, let the exceptions happen. It's not worth the hassle of error-checking when the result of not checking an error is exactly the same thing. ChrisA