Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12362

Re: Checking Signature of Function Parameter

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 <rosuav@gmail.com>
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> <mailman.517.1314567115.27778.python-list@python.org> <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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.522.1314577676.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Aug 29, 2011 at 10:20 AM, Travis Parks <jehugaleahsa@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Checking Signature of Function Parameter Travis Parks <jehugaleahsa@gmail.com> - 2011-08-28 14:20 -0700
  Re: Checking Signature of Function Parameter Chris Angelico <rosuav@gmail.com> - 2011-08-29 07:31 +1000
    Re: Checking Signature of Function Parameter Travis Parks <jehugaleahsa@gmail.com> - 2011-08-28 17:20 -0700
      Re: Checking Signature of Function Parameter Chris Angelico <rosuav@gmail.com> - 2011-08-29 10:27 +1000
  Re: Checking Signature of Function Parameter Ian Kelly <ian.g.kelly@gmail.com> - 2011-08-28 18:40 -0600
  Re: Checking Signature of Function Parameter Chris Rebert <clp2@rebertia.com> - 2011-08-28 18:21 -0700
  Re: Checking Signature of Function Parameter Nobody <nobody@nowhere.com> - 2011-08-29 07:30 +0100
    Re: Checking Signature of Function Parameter Travis Parks <jehugaleahsa@gmail.com> - 2011-08-29 09:45 -0700
      Re: Checking Signature of Function Parameter Ian Kelly <ian.g.kelly@gmail.com> - 2011-08-29 11:42 -0600
        Re: Checking Signature of Function Parameter Travis Parks <jehugaleahsa@gmail.com> - 2011-08-29 11:04 -0700
          Re: Checking Signature of Function Parameter Ethan Furman <ethan@stoneleaf.us> - 2011-08-29 16:36 -0700

csiph-web