[Python-Dev] enum discussion: can someone please summarize open issues?

Barry Warsaw barry at python.org
Wed May 1 17:47:55 CEST 2013

On May 01, 2013, at 12:19 AM, Glenn Linderman wrote:

>Can Things('foo') lookup by name and Things['foo'] lookup by value? Or does
>that confuse things too?

I think it confuses things too much.  Why isn't getattr() for lookup by name
good enough?  It is for regular classes.


More information about the Python-Dev mailing list