enum

Standard library module View source
class Enum
class Enum

Base class for native enumerations with named, singleton members.

Constructors 2
__new__
@staticmethod
__new__(value, __SELF__: type = Enum)
__init__
__init__(self, value)
Properties 2
name
@property
name(self)
value
@property
value(self: __SELF__, __SELF__: type)
Special methods 13
__iter__
@staticmethod
__iter__(__SELF__: type = Enum)
__len__
@staticmethod
__len__(__SELF__: type = Enum)
__reversed__
@staticmethod
__reversed__(__SELF__: type = Enum)
__getitem__
@staticmethod
__getitem__(name: str, __SELF__: type = Enum)
__contains__
@staticmethod
__contains__(value, __SELF__: type = Enum)
__eq__
__eq__(self, other)
__ne__
__ne__(self, other)
__hash__
__hash__(self)
__bool__
__bool__(self)
__str__
__str__(self)
__repr__
__repr__(self: __SELF__, __SELF__: type)
__copy__
__copy__(self: __SELF__, __SELF__: type)
__deepcopy__
__deepcopy__(self: __SELF__, __SELF__: type)