[Python-ideas] PEP for enum library type?

Barry Warsaw barry at python.org
Wed Feb 13 19:14:03 CET 2013


On Feb 12, 2013, at 02:13 PM, Eli Bendersky wrote:

>I agree, and Tim's implementation provides a very nice string
>representation, no matter what the value underneath is. I don't really care
>what the value underneath is, actually.

Except that sometimes you do, which is why flufl.enum has a nice concise str
and a more detailed repr.  The former doesn't include the underlying value
while the latter does.  Edible cake.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130213/0419c67a/attachment.pgp>


More information about the Python-ideas mailing list