homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients David Hagen, John Hagen, abarry, barry, eli.bendersky, ethan.furman, kennethreitz, python-dev, rhettinger, veky, vstinner
Date 2016年08月19日.13:29:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwYOs3g7vT2idP2q+00uP+WGYjKQexmhw7JhKPP6CjxTXw@mail.gmail.com>
In-reply-to <1471609170.1.0.143312838588.issue26988@psf.upfronthosting.co.za>
Content
2016年08月19日 14:19 GMT+02:00 Vedran Čačić <report@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.
History
Date User Action Args
2016年08月19日 13:29:23vstinnersetrecipients: + vstinner, barry, rhettinger, eli.bendersky, ethan.furman, python-dev, veky, abarry, John Hagen, David Hagen, kennethreitz
2016年08月19日 13:29:23vstinnerlinkissue26988 messages
2016年08月19日 13:29:22vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /