from enum import Enum
class ExtendedEnum(Enum):
@classmethod
def list(cls):
return [c.value for c in cls]
class OperationType(ExtendedEnum):
CREATE = 'CREATE'
STATUS = 'STATUS'
EXPAND = 'EXPAND'
DELETE = 'DELETE'
print(OperationType.list())
참고
How to get all values from python enum class?