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


Groups > comp.lang.python > #107525

Re: How much sanity checking is required for function inputs?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: How much sanity checking is required for function inputs?
Date Sat, 23 Apr 2016 19:29:42 -0600
Lines 13
Message-ID <mailman.18.1461461424.32212.python-list@python.org> (permalink)
References <5713E52D.3060407@icloud.com> <1461131475.4042173.584042297.03DAB00E@webmail.messagingengine.com> <57171D23.40709@stoneleaf.us> <1461133057.4046578.584060569.2DD34821@webmail.messagingengine.com> <57185E88.30201@yahoo.com> <57197FC3.4030701@icloud.com> <1461291613.433097.586174185.01BB7E37@webmail.messagingengine.com> <57199BA5.4000703@icloud.com> <5719ACBB.8020905@stoneleaf.us> <571C1AA8.8000202@icloud.com> <CALwzid=WAEBjDJyLqFu8ujO=v3Yv93O2SB6GmPQneMyk+4kA=A@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 36mw0B5J+zHSQW2U//5E1Qh+LztVaZtRBPQxp9lMOQyQ==
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'great.': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'enum': 0.09; 'oh,': 0.09; 'python': 0.10; '2016': 0.16; '23,': 0.16; 'cc:name:python': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:required': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'java': 0.22; 'for?': 0.23; 'forgot': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'received:google.com': 0.35; 'quite': 0.35; 'supports': 0.35; 'received:209.85': 0.36; 'totally': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'still': 0.40; "they're": 0.66; '7:00': 0.84; 'hmm...': 0.84; 'to:none': 0.91; 'ethan': 0.91; 'furman': 0.91; 'look.': 0.91; 'subject:much': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=hT3jlAwotHuS9uHuwaX4ZaZf9P5+NRymLZ8bYipURpY=; b=WobGdTY/lPwXtW3zxR/oLjJSOjVeIkK2MGIX9C6wVCeNtE52GmIqLt/uUb7CpFWA4a ssPj6aMC4K3IbPbHEFSLEzjWFSjykb8+VAFJkUxbU6N/gpCnF3zPp7fhTaM/gwd1VY2o S58slGZ9BNEvt1XXfvIzLCu9PCH8ckQAGPOQBoWX/pdS+KFWajk7uTPoSGh/qr3+lVTV yUc2mGlkUAAim1d1E9SOtAeZ1iFitrDliIPrt7bLpNyQIN9j8+qushTAOPzNYSkT2g2x AgQyzdT1IVqgLbGDWoagRKcVXjrcFyW9NhngAf5yVEjfDXHONySGafnelVI3r5B8EqRi q/ww==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=hT3jlAwotHuS9uHuwaX4ZaZf9P5+NRymLZ8bYipURpY=; b=geGau8H1UM1Fdcihak9A6toHGN7cYd/Wi6LOaxTCIOXmIcHSTpUxEs5aIqYwI9SqG5 W5H9gAZVxgnNcXgH6dUZZOq4ECOh7VUQ0PPnVpSW9S4PgpiGhtWHosW2Pq+WMiMtjk3g N7vJKpz6fsHWJu2ULUe4F6iLKgHEhIgCcduS1b80X2Ittb4yXssJhnSAZVXHDOlpra3A S9iQalfJmewoqvQzoTqaUKXC138QOMdCmOO+x3ok3iM9eOmOmXcN124IkmvbbX5rZrS+ JwzekRfSNt4eTCIcgGfQNpqJYQvol9AARidpMEPGPJ+YGSdO9ZM5AbBVhwGNJcCUFbnA GM/A==
X-Gm-Message-State AOPr4FUAT+H31YG/S1hFPkweBwBQ1KHTt/iBLztL0GroJwoRtphe/BMGorxZfJQ2u+CuAFLgTAtG7wvU8bLoHw==
X-Received by 10.107.55.194 with SMTP id e185mr2978268ioa.188.1461461421982; Sat, 23 Apr 2016 18:30:21 -0700 (PDT)
In-Reply-To <571C1AA8.8000202@icloud.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CALwzid=WAEBjDJyLqFu8ujO=v3Yv93O2SB6GmPQneMyk+4kA=A@mail.gmail.com>
X-Mailman-Original-References <5713E52D.3060407@icloud.com> <1461131475.4042173.584042297.03DAB00E@webmail.messagingengine.com> <57171D23.40709@stoneleaf.us> <1461133057.4046578.584060569.2DD34821@webmail.messagingengine.com> <57185E88.30201@yahoo.com> <57197FC3.4030701@icloud.com> <1461291613.433097.586174185.01BB7E37@webmail.messagingengine.com> <57199BA5.4000703@icloud.com> <5719ACBB.8020905@stoneleaf.us> <571C1AA8.8000202@icloud.com>
Xref csiph.com comp.lang.python:107525

Show key headers only | View raw


On Sat, Apr 23, 2016 at 7:00 PM, Christopher Reimer
<christopher_reimer@icloud.com> wrote:
> On 4/21/2016 9:46 PM, Ethan Furman wrote:
>>
>> Oh! and Enum!!!  ;)
>
>
> OMG! I totally forgot about Enum. Oh, look. Python supports Enum. Now I
> don't have to roll my own!
>
> Hmm... What do we use Enum for? :)

Python enums are great. Sadly, they're still not quite as awesome as Java enums.

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


Thread

Re: How much sanity checking is required for function inputs? Ian Kelly <ian.g.kelly@gmail.com> - 2016-04-23 19:29 -0600

csiph-web