Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107578
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Michael Selik <michael.selik@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: How much sanity checking is required for function inputs? |
| Date | Mon, 25 Apr 2016 01:02:33 +0000 |
| Lines | 12 |
| Message-ID | <mailman.62.1461546171.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> <1461302724.477236.586265777.181ACCA0@webmail.messagingengine.com> <CAGgTfkNz5aeS5Jo+3yc+nWjUKnfhe=0zBVNeNHUMHD6Uj9VyEA@mail.gmail.com> <571C2541.9050309@icloud.com> <571C30C8.5000208@gmail.com> <mailman.24.1461465315.32212.python-list@python.org> <571c5e72$0$1615$c3e8da3$5496439d@news.astraweb.com> <CAGgTfkOXzfdASq7h4+0n3wokpmQmTREZ7Kzd_Qbog-hZ5HM7MA@mail.gmail.com> <mailman.30.1461480050.32212.python-list@python.org> <571d09aa$0$1618$c3e8da3$5496439d@news.astraweb.com> <CAGgTfkPyX7JVxGEXXqb1EBSORKXUYzg2_6HncZ2zqHnFJ5Ejsw@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de HVil2gp/dsBPZFyfQ08MFQQ6KxfYtTOvONTfhM36Vmiw== |
| Return-Path | <michael.selik@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; '"the': 0.07; 'subject:How': 0.09; 'constants.': 0.09; 'globals': 0.09; '2016': 0.16; '24,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:required': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.16; '>': 0.18; 'to:2**1': 0.21; 'mixed': 0.22; 'trying': 0.22; 'header:In-Reply- To:1': 0.24; 'example': 0.26; 'message-id:@mail.gmail.com': 0.27; "we're": 0.30; '"the': 0.32; 'point': 0.33; 'michael': 0.33; 'usually': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'expected': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'received:209': 0.38; 'received:209.85.220': 0.38; 'means': 0.39; 'to:addr:python.org': 0.40; 'subject:much': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7RdxJax+C2CFv7eEBP12SLnkB15zQQ+dAhkxzf+6tJw=; b=JIvD1MBKS8mHz3HG0f4Twb99Y1DhpdH2lXrOUF/wMIqHxB38M8lfqtwDdTV68PMbcZ n7Ewr3HFn94FDuvvC6txLzOwSzyV6DDLfMVJ4kGQYFa+N6+gJ2DAeOnN6+G6AUmvVXyi TWxZKhcHG/rdKmfrQ5TDLnlTCQlMv5w7jMYurPCm9EqB/3QW1AaUaNB0mpMVCVSlABg1 wrMKunENSLDhVkdrsLsxGSux0z3xNDMCrBPRU29WyB6Rho/+yHsg5z8taJVwkIVvusnp bi7MnEETd5Z0ICrjLH7kC9O+Sw932a502xzsxWf74rR6rwpIUW0RJAFsaMDFIEdnGJcQ aHfw== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7RdxJax+C2CFv7eEBP12SLnkB15zQQ+dAhkxzf+6tJw=; b=iKLjZqGmdQqfqJkuUWoCnjDATJFi3AmJdIVlCRrHfOT6zoLPmYFg5Cuwj4nKxOgHmM 0HcMOZxuTzv1TprgXmBY+W2PMJLysSaqnsFRBjxwkkbqX2rJwTgfOdS5wsKsElbghbyD m+wwjySiuVsvfxaZ9BX2zHj4SM+O7exExzZdqDRnFqjq03VCfFJvKtJCWc0LLRr67QF6 uZr97ux7DrbF0HDdUImxJfsTw0MaUe5MSo46kQ+DQog88qisooo8bOUsQgTjNBeX9L2p 4WxDLgd+AfrqX8wR6G9D+6iagL5R8BHEtfIiCuhat9LA7rDYP578QU1+4Kau4F5kYAG2 wX2g== |
| X-Gm-Message-State | AOPr4FWAtfnaYrXbmfRryd7cccOTuMg1TqY3Hhg4HEqblmOf5KGNfVStpr8o6jNBSKJ9tZC4q7fbVntceBKGQA== |
| X-Received | by 10.55.75.144 with SMTP id y138mr35830248qka.96.1461546163045; Sun, 24 Apr 2016 18:02:43 -0700 (PDT) |
| In-Reply-To | <571d09aa$0$1618$c3e8da3$5496439d@news.astraweb.com> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| 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 | <CAGgTfkPyX7JVxGEXXqb1EBSORKXUYzg2_6HncZ2zqHnFJ5Ejsw@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> <1461302724.477236.586265777.181ACCA0@webmail.messagingengine.com> <CAGgTfkNz5aeS5Jo+3yc+nWjUKnfhe=0zBVNeNHUMHD6Uj9VyEA@mail.gmail.com> <571C2541.9050309@icloud.com> <571C30C8.5000208@gmail.com> <mailman.24.1461465315.32212.python-list@python.org> <571c5e72$0$1615$c3e8da3$5496439d@news.astraweb.com> <CAGgTfkOXzfdASq7h4+0n3wokpmQmTREZ7Kzd_Qbog-hZ5HM7MA@mail.gmail.com> <mailman.30.1461480050.32212.python-list@python.org> <571d09aa$0$1618$c3e8da3$5496439d@news.astraweb.com> |
| Xref | csiph.com comp.lang.python:107578 |
Show key headers only | View raw
On Sun, Apr 24, 2016 at 2:08 PM Steven D'Aprano <steve@pearwood.info> wrote: > On Sun, 24 Apr 2016 04:40 pm, Michael Selik wrote: > > I think we're giving mixed messages because we're conflating > "constants" and globals that are expected to change. > > When you talk about "state", that usually means "the current state of the > program", not constants. math.pi is not "state". > Perhaps I was unclear. You provided an example of what I was trying to point out.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: How much sanity checking is required for function inputs? Michael Torrie <torriem@gmail.com> - 2016-04-23 20:34 -0600
Re: How much sanity checking is required for function inputs? Steven D'Aprano <steve@pearwood.info> - 2016-04-24 15:49 +1000
Re: How much sanity checking is required for function inputs? Michael Selik <michael.selik@gmail.com> - 2016-04-24 06:40 +0000
Re: How much sanity checking is required for function inputs? Steven D'Aprano <steve@pearwood.info> - 2016-04-25 04:00 +1000
Re: How much sanity checking is required for function inputs? Michael Selik <michael.selik@gmail.com> - 2016-04-25 01:02 +0000
csiph-web