Enum with only a single member

Chris Angelico rosuav at gmail.com
Tue Jan 10 03:37:08 EST 2017


On Tue, Jan 10, 2017 at 7:33 PM, Paul Rubin <no.email at nospam.invalid> wrote:
>> That is, a singleton enum?
>
> Why stop there?  You can make empty ones too.  (Zerotons?)

Sure you *can*, but I can't think of any time they'd be useful. Can
you give an example?

ChrisA



More information about the Python-list mailing list