Efficient implementation of comparison operators for cards in a poker simulation
There are a couple choices, but the best is to record the value's index on Card creation:
self.order = value._member_names_.index(value.name)

Then your comparison can use self.order directly:
return self.order &lt; other.order

_member_names_ is a supported attribute and won't be going away.