Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013年4月25日 23:58:35 -0700

On 04/25/2013 10:30 PM, Nick Coghlan wrote:
Alternatively, we can flip it around and require that each enum
definition nominate an expected value type (defaulting to int) and
only convert class attributes that are instances of that type to
instances of the enum class.
I think this option makes the most sense.
--
~Ethan~
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to