Barry A. Warsaw added the comment:

On Jun 19, 2013, at 01:00 PM, Eli Bendersky wrote:

>What is the theoretical problem here? I though that it's an explicit design
>goal of enums? Which RED - Color.RED, or MeatReadiness.RED? For sockets:
>
>>>> class SocketType(IntEnum):
>...   SOCK_STREAM = 1
>...   SOCK_DGRAM = 2
>... 
>>>> str(SocketType.SOCK_STREAM)
>'SocketType.SOCK_STREAM'
>
>Looks pretty good to me in terms of debuggability.

Me too.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17961>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to