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


Groups > comp.lang.python > #107529

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

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Christopher Reimer <christopher_reimer@icloud.com>
Newsgroups comp.lang.python
Subject Re: How much sanity checking is required for function inputs?
Date Sat, 23 Apr 2016 19:09:24 -0700
Lines 13
Message-ID <mailman.22.1461463765.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> <571C2AD4.2060003@icloud.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de LSPv7aEBTsuNWH+Pjbb+/QtmQeg+bzT743zUCI6/opUA==
Return-Path <christopher_reimer@icloud.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.081
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'great.': 0.07; 'subject:How': 0.09; 'python': 0.10; 'java.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:required': 0.16; 'wrote:': 0.16; 'java': 0.22; "haven't": 0.24; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'received:17': 0.27; 'program,': 0.29; 'there.': 0.30; "i'm": 0.30; 'received:10.0.0': 0.32; 'language.': 0.32; 'received:10.0': 0.34; 'quite': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'thank': 0.38; 'to:addr:python.org': 0.40; 'still': 0.40; 'header:MIME-version:1': 0.60; 'back': 0.62; 'charset:windows-1252': 0.62; 'more': 0.63; "they're": 0.66; 'here': 0.66; 'boost': 0.67; 'header:In-reply-to:1': 0.84; 'subject:much': 0.91
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-04-24_02:,, signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1604240034
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
In-reply-to <CALwzid=WAEBjDJyLqFu8ujO=v3Yv93O2SB6GmPQneMyk+4kA=A@mail.gmail.com>
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1461463762; bh=6klV1PajyOpKlDTqqH9NG+VP+Fr64XOnYyrDiitkwPM=; h=Subject:To:From:Message-id:Date:MIME-version:Content-type; b=N8xjKMbwpNbinSId8cKekG37Yc1FUDC96QS8/ca77M6KL1Ur7WYDag+uwX618iptR 3XDCgNmeELKWj6dir1nJxACC3vpfE8bwnrAY1PnxtXdhCftlGBOiAWqBHOLY6C4NZw O+Q48RnM52DHCUsaLg3cvtZh0KOgRe5Z1VJrdlFiu4TGDwoWpNwRtOMFmPqh7Liw6S Dijoy8ESC+XAdFqr8RU0oxsxwV5eQ/HNAnLIbe29nfddyB+kopgqmh7Kgfmng/bWt1 NlerOB/I0zS9Stw1htqJVk8s50khfcj0xzteQmegihDt30GOnH0s0qK1RuyYVwxYWx o2kcQUcu1891w==
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 <571C2AD4.2060003@icloud.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> <CALwzid=WAEBjDJyLqFu8ujO=v3Yv93O2SB6GmPQneMyk+4kA=A@mail.gmail.com>
Xref csiph.com comp.lang.python:107529

Show key headers only | View raw


On 4/23/2016 6:29 PM, Ian Kelly wrote:
> Python enums are great. Sadly, they're still not quite as awesome as 
> Java enums.

I remember enums more from C than Java. Although I haven't used them 
much in either language. I'm planning to immerse myself back into C via 
Cython. Depending on far I get into this chess program, I might need a 
speed boost here and there.

Thank you,

Chris R.

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


Thread

Re: How much sanity checking is required for function inputs? Christopher Reimer <christopher_reimer@icloud.com> - 2016-04-23 19:09 -0700

csiph-web