[Python-ideas] PEP for enum library type?

Barry Warsaw barry at python.org
Wed Feb 13 23:00:39 CET 2013


On Feb 14, 2013, at 06:22 AM, Tim Delaney wrote:

>Yes - my enum's exactly the same - simple, concise str (for both the enum
>and values) and detailed repr. The actual repr is a little different to
>flufl.enum repr (I think the str is the same) but conveys the same
>information.

I like that you came to the same conclusion, namely that the str should be
simple and the repr more detailed.  The exactly color of that detail can be
bikeshedded to death now. :)

-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/713442c7/attachment.pgp>


More information about the Python-ideas mailing list