Skip to main content

enum

Standard library module View source
class Enum
class Enum

Native singleton members, initialized by _make_member before lookup.

Constructors 1
__new__
@staticmethod
__new__(value, Self: type = Enum)
Properties 2
name
@property
name(self: Self, Self: type)
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: Self, other, Self: type)
__ne__
__ne__(self: Self, other, Self: type)
__hash__
__hash__(self: Self, Self: type)
__bool__
__bool__(self: Self, Self: type)
__str__
__str__(self: Self, Self: type)
__repr__
__repr__(self: Self, Self: type)
__copy__
__copy__(self: Self, Self: type)
__deepcopy__
__deepcopy__(self: Self, Self: type)