A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-May/126183.html below:

[Python-Dev] Best practices for Enum

[Python-Dev] Best practices for Enum [Python-Dev] Best practices for EnumBarry Warsaw barry at python.org
Mon May 13 16:19:38 CEST 2013
On May 12, 2013, at 04:49 PM, Raymond Hettinger wrote:

>After the long design effort for the enum module, I'm sure there will be a
>forthcoming effort to apply them pervasively throughout the standard library.

We usually, explicitly, try not to do such wholesale adoptions in the stdlib
when new features land.  This is almost always a good idea in order to gain
more experience with the new feature, reduce code churn (and thus the
introduction of bugs), and aid in back/forward porting.

It seems entirely reasonable to me to be just as conservative about adoption
of enums in the stdlib.

As Eli mentions, making the socket constants enums seems like a good test
case.

-Barry
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4