Should enum instances be compared by identity or equality?

From https://docs.python.org/3/library/enum.html#module-enum:

Within an enumeration, the members can be compared by identity

In particular, from https://docs.python.org/3/howto/enum.html#comparisons :

Enumeration members are compared by identity

and

Equality comparisons are defined though

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)