[Python-Dev] constant/enum type in stdlib

Fred Drake fdrake at acm.org
Tue Nov 23 18:57:20 CET 2010


On Tue, Nov 23, 2010 at 12:37 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Enumerations aren't a type at all (they have no distinguishing
> property).

In any given language, this may be true, or not.  Whether they should
be distinct in Python is core to the current discussion.

>From a backward-compatibility perspective, what makes sense depends on
whether they're used to implement existing constants (socket.AF_INET,
etc.) or if they reserved for new features only.


  -Fred

--
Fred L. Drake, Jr.    <fdrake at acm.org>
"A storm broke loose in my mind."  --Albert Einstein


More information about the Python-Dev mailing list