STINNER Victor added the comment:

2016-08-19 14:19 GMT+02:00 Vedran Čačić <rep...@bugs.python.org>:
> In fact, what _is_ explicit, is this:
>
>     class Color(metaclass=Enum):
>         green = object()
>         yellow = object()
>
> I could live with it. :-)

For me, it's legit to use a singleton in an enum. I mean that I expect
that green != yellow. Some remark for an empty tuple.

So I woud really prefer a contant from enum like AUTO_ENUM.

----------

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

Reply via email to