Marco Hemmelrath <marco.hemmelrath at googlemail.com> writes:
> class State(enum):
> idle = 0
> busy = 1
> idling = idle
> ideling = 0
>> together with the premises:
>> 1. type(State.busy) == State
> 2. type(State) == enum
State is a class, it just inherits from enum. Thus:
type(State) == type(enum) == type(EnumMetaclass)
issubclass(State, enum) == True
HTH,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C