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


Groups > comp.lang.python > #107542 > unrolled thread

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

Started byEthan Furman <ethan@stoneleaf.us>
First post2016-04-24 00:22 -0700
Last post2016-04-24 00:22 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How much sanity checking is required for function inputs? Ethan Furman <ethan@stoneleaf.us> - 2016-04-24 00:22 -0700

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

FromEthan Furman <ethan@stoneleaf.us>
Date2016-04-24 00:22 -0700
SubjectRe: How much sanity checking is required for function inputs?
Message-ID<mailman.32.1461482509.32212.python-list@python.org>
On 04/23/2016 06:21 PM, Michael Selik wrote:
> On Sat, Apr 23, 2016 at 9:01 PM Christopher Reimer wrote:

>> Hmm... What do we use Enum for? :)
>
> You can use Enum in certain circumstances to replace int or str constants.
> It can help avoid mistyping mistakes and might help your IDE give
> auto-complete suggestions. I haven't found a good use for them myself, but
> I'd been mostly stuck in Python 2 until recently.

enum34 is the backport, aenum is the turbo charged version.

   https://pypi.python.org/pypi/enum34
   https://pypi.python.org/pypi/aenum

--
~Ethan~

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web