Message191465
| Author |
barry |
| Recipients |
barry, eli.bendersky, ethan.furman, ncoghlan, pitrou |
| Date |
2013年06月19日.13:31:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<20130619093123.2adae1c1@anarchist> |
| In-reply-to |
<1371646852.02.0.678955487556.issue17961@psf.upfronthosting.co.za> |
| Content |
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. |
|