Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...
class MyEnum(str, Enum): state1 = 'state1' state2 = 'state2' It's important for string-enums to inherit first from str so it can be used as a mixin for the enum. When ...