Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Christopher Reimer Newsgroups: comp.lang.python Subject: Re: How much sanity checking is required for function inputs? Date: Sat, 23 Apr 2016 18:00:24 -0700 Lines: 12 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de l8+z51S2QF8lnq0J4JmKegasCSwa/p2SV+byibo6x5ZQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.117 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.04; 'subject:How': 0.09; 'enum': 0.09; 'oh,': 0.09; 'python': 0.10; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:required': 0.16; 'wrote:': 0.16; 'for?': 0.23; 'forgot': 0.23; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'received:17': 0.27; 'received:10.0.0': 0.32; 'received:10.0': 0.34; 'supports': 0.35; 'totally': 0.36; '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; 'header:MIME-version:1': 0.60; 'charset:windows-1252': 0.62; 'header:In-reply-to:1': 0.84; 'hmm...': 0.84; 'ethan': 0.91; 'furman': 0.91; 'look.': 0.91; '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-1604240015 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-reply-to: <5719ACBB.8020905@stoneleaf.us> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1461459623; bh=ZMgHUT7VZfFwEbGjs5UveQH+CVnHbpPASChtaB1hy5I=; h=Subject:To:From:Message-id:Date:MIME-version:Content-type; b=OKPzA+pDv0298wI2XFLg8VZ7vPvg1p4bKa4H2dHahWLKyLECKlo3hsRl87S2703AP FJ4FwmNnF9fQCdJUsLQZZ4Zda0WO00as+7FdiQZIvJRT88vvjnszSnnP1pYTdkrrT1 Wd2rXer9HRvYfZ+NITM9Lp5r/DbHo1QWHjCKbYBxVreDDzqrc2P7hp+91KhoTVs+3X CpbULBu7R//Fvj2a1PRRyiKmSgD1Tv4+2BnlLV+yB008jAbuRI4r1RPSmKNpftXBrM iG/bV7htprserZa6JdbpunNqkTpVE7Bh4xhrfY69Wia8YSrxQYF60Wg7zNiE2xGcFg TDu1B7HqYY58w== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <571C1AA8.8000202@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> Xref: csiph.com comp.lang.python:107522 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? :) Thank you, Chris R.