René's URL Explorer Experiment


Title: Enum HOWTO — Python 3.15.0a5 documentation

Open Graph Title: Enum HOWTO

Description: An Enum is a set of symbolic names bound to unique values. They are similar to global variables, but they offer a more useful repr(), grouping, type-safety, and a few other features. They are most ...

Open Graph Description: An Enum is a set of symbolic names bound to unique values. They are similar to global variables, but they offer a more useful repr(), grouping, type-safety, and a few other features. They are most ...

Opengraph URL: https://docs.python.org/3/howto/enum.html

direct link

Domain: docs.python.org

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.15/_images/social_previews/summary_howto_enum_c8f11d29.png
og:image:altAn Enum is a set of symbolic names bound to unique values. They are similar to global variables, but they offer a more useful repr(), grouping, type-safety, and a few other features. They are most ...
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
Table of Contentshttps://docs.python.org/dev/contents.html
Enum HOWTOhttps://docs.python.org/dev/howto/enum.html
Programmatic access to enumeration members and their attributeshttps://docs.python.org/dev/howto/enum.html#programmatic-access-to-enumeration-members-and-their-attributes
Duplicating enum members and valueshttps://docs.python.org/dev/howto/enum.html#duplicating-enum-members-and-values
Ensuring unique enumeration valueshttps://docs.python.org/dev/howto/enum.html#ensuring-unique-enumeration-values
Using automatic valueshttps://docs.python.org/dev/howto/enum.html#using-automatic-values
Iterationhttps://docs.python.org/dev/howto/enum.html#iteration
Comparisonshttps://docs.python.org/dev/howto/enum.html#comparisons
Allowed members and attributes of enumerationshttps://docs.python.org/dev/howto/enum.html#allowed-members-and-attributes-of-enumerations
Restricted Enum subclassinghttps://docs.python.org/dev/howto/enum.html#restricted-enum-subclassing
Dataclass supporthttps://docs.python.org/dev/howto/enum.html#dataclass-support
Picklinghttps://docs.python.org/dev/howto/enum.html#pickling
Functional APIhttps://docs.python.org/dev/howto/enum.html#functional-api
Derived Enumerationshttps://docs.python.org/dev/howto/enum.html#derived-enumerations
IntEnumhttps://docs.python.org/dev/howto/enum.html#intenum
StrEnumhttps://docs.python.org/dev/howto/enum.html#strenum
IntFlaghttps://docs.python.org/dev/howto/enum.html#intflag
Flaghttps://docs.python.org/dev/howto/enum.html#flag
Othershttps://docs.python.org/dev/howto/enum.html#others
When to use __new__() vs. __init__()https://docs.python.org/dev/howto/enum.html#when-to-use-new-vs-init
Finer Pointshttps://docs.python.org/dev/howto/enum.html#finer-points
Supported __dunder__ nameshttps://docs.python.org/dev/howto/enum.html#supported-dunder-names
Supported _sunder_ nameshttps://docs.python.org/dev/howto/enum.html#supported-sunder-names
_Private__nameshttps://docs.python.org/dev/howto/enum.html#private-names
Enum member typehttps://docs.python.org/dev/howto/enum.html#enum-member-type
Creating members that are mixed with other data typeshttps://docs.python.org/dev/howto/enum.html#creating-members-that-are-mixed-with-other-data-types
Boolean value of Enum classes and membershttps://docs.python.org/dev/howto/enum.html#boolean-value-of-enum-classes-and-members
Enum classes with methodshttps://docs.python.org/dev/howto/enum.html#enum-classes-with-methods
Combining members of Flaghttps://docs.python.org/dev/howto/enum.html#combining-members-of-flag
Flag and IntFlag minutiahttps://docs.python.org/dev/howto/enum.html#flag-and-intflag-minutia
How are Enums and Flags different?https://docs.python.org/dev/howto/enum.html#how-are-enums-and-flags-different
Enum Classeshttps://docs.python.org/dev/howto/enum.html#enum-classes
Flag Classeshttps://docs.python.org/dev/howto/enum.html#flag-classes
Enum Members (aka instances)https://docs.python.org/dev/howto/enum.html#enum-members-aka-instances
Flag Membershttps://docs.python.org/dev/howto/enum.html#flag-members
Enum Cookbookhttps://docs.python.org/dev/howto/enum.html#enum-cookbook
Omitting valueshttps://docs.python.org/dev/howto/enum.html#omitting-values
Using autohttps://docs.python.org/dev/howto/enum.html#using-auto
Using objecthttps://docs.python.org/dev/howto/enum.html#using-object
Using a descriptive stringhttps://docs.python.org/dev/howto/enum.html#using-a-descriptive-string
Using a custom __new__()https://docs.python.org/dev/howto/enum.html#using-a-custom-new
OrderedEnumhttps://docs.python.org/dev/howto/enum.html#orderedenum
DuplicateFreeEnumhttps://docs.python.org/dev/howto/enum.html#duplicatefreeenum
MultiValueEnumhttps://docs.python.org/dev/howto/enum.html#multivalueenum
Planethttps://docs.python.org/dev/howto/enum.html#planet
TimePeriodhttps://docs.python.org/dev/howto/enum.html#timeperiod
Subclassing EnumTypehttps://docs.python.org/dev/howto/enum.html#subclassing-enumtype
Debugging C API extensions and CPython Internals with GDBhttps://docs.python.org/dev/howto/gdb_helpers.html
Functional Programming HOWTOhttps://docs.python.org/dev/howto/functional.html
Report a bughttps://docs.python.org/dev/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/howto/enum.rst?plain=1
indexhttps://docs.python.org/dev/genindex.html
moduleshttps://docs.python.org/dev/py-modindex.html
nexthttps://docs.python.org/dev/howto/functional.html
previoushttps://docs.python.org/dev/howto/gdb_helpers.html
Pythonhttps://www.python.org/
3.15.0a5 Documentationhttps://docs.python.org/dev/index.html
Python HOWTOshttps://docs.python.org/dev/howto/index.html
Enum HOWTOhttps://docs.python.org/dev/howto/enum.html
https://docs.python.org/dev/howto/enum.html#enum-howto
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
repr()https://docs.python.org/dev/library/functions.html#repr
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
datetime.datehttps://docs.python.org/dev/library/datetime.html#datetime.date
weekday()https://docs.python.org/dev/library/datetime.html#datetime.date.weekday
isoweekday()https://docs.python.org/dev/library/datetime.html#datetime.date.isoweekday
datehttps://docs.python.org/dev/library/datetime.html#datetime.date
listhttps://docs.python.org/dev/library/stdtypes.html#list
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
auto()https://docs.python.org/dev/library/enum.html#enum.auto
https://docs.python.org/dev/howto/enum.html#programmatic-access-to-enumeration-members-and-their-attributes
https://docs.python.org/dev/howto/enum.html#duplicating-enum-members-and-values
https://docs.python.org/dev/howto/enum.html#ensuring-unique-enumeration-values
unique()https://docs.python.org/dev/library/enum.html#enum.unique
https://docs.python.org/dev/howto/enum.html#using-automatic-values
autohttps://docs.python.org/dev/library/enum.html#enum.auto
_generate_next_value_()https://docs.python.org/dev/library/enum.html#enum.Enum._generate_next_value_
_generate_next_value_()https://docs.python.org/dev/library/enum.html#enum.Enum._generate_next_value_
https://docs.python.org/dev/howto/enum.html#iteration
https://docs.python.org/dev/howto/enum.html#comparisons
IntEnumhttps://docs.python.org/dev/howto/enum.html#intenum
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
https://docs.python.org/dev/howto/enum.html#allowed-members-and-attributes-of-enumerations
Functional APIhttps://docs.python.org/dev/howto/enum.html#functional-api
__str__()https://docs.python.org/dev/reference/datamodel.html#object.__str__
__add__()https://docs.python.org/dev/reference/datamodel.html#object.__add__
_ignore_https://docs.python.org/dev/library/enum.html#enum.Enum._ignore_
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
Planethttps://docs.python.org/dev/howto/enum.html#planet
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
When to use __new__() vs. __init__()https://docs.python.org/dev/howto/enum.html#new-vs-init
https://docs.python.org/dev/howto/enum.html#restricted-enum-subclassing
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
objecthttps://docs.python.org/dev/library/functions.html#object
OrderedEnumhttps://docs.python.org/dev/howto/enum.html#orderedenum
https://docs.python.org/dev/howto/enum.html#dataclass-support
dataclasshttps://docs.python.org/dev/library/dataclasses.html#dataclasses.dataclass
__repr__()https://docs.python.org/dev/library/enum.html#enum.Enum.__repr__
dataclass()https://docs.python.org/dev/library/dataclasses.html#dataclasses.dataclass
repr()https://docs.python.org/dev/library/functions.html#repr
dataclass()https://docs.python.org/dev/library/dataclasses.html#dataclasses.dataclass
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
https://docs.python.org/dev/howto/enum.html#pickling
__reduce_ex__()https://docs.python.org/dev/library/pickle.html#object.__reduce_ex__
https://docs.python.org/dev/howto/enum.html#functional-api
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
namedtuplehttps://docs.python.org/dev/library/collections.html#collections.namedtuple
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
__qualname__https://docs.python.org/dev/reference/datamodel.html#type.__qualname__
https://docs.python.org/dev/howto/enum.html#derived-enumerations
https://docs.python.org/dev/howto/enum.html#intenum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
inthttps://docs.python.org/dev/library/functions.html#int
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
https://docs.python.org/dev/howto/enum.html#strenum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
strhttps://docs.python.org/dev/library/stdtypes.html#str
StrEnumhttps://docs.python.org/dev/library/enum.html#enum.StrEnum
https://docs.python.org/dev/howto/enum.html#intflag
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
inthttps://docs.python.org/dev/library/functions.html#int
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
inthttps://docs.python.org/dev/library/functions.html#int
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
FlagBoundaryhttps://docs.python.org/dev/library/enum.html#enum.FlagBoundary
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Falsehttps://docs.python.org/dev/library/constants.html#False
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
inthttps://docs.python.org/dev/library/functions.html#int
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
https://docs.python.org/dev/howto/enum.html#flag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
inthttps://docs.python.org/dev/library/functions.html#int
autohttps://docs.python.org/dev/library/enum.html#enum.auto
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
Falsehttps://docs.python.org/dev/library/constants.html#False
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
https://docs.python.org/dev/howto/enum.html#others
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
enumhttps://docs.python.org/dev/library/enum.html#module-enum
floathttps://docs.python.org/dev/library/functions.html#float
inthttps://docs.python.org/dev/library/functions.html#int
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
boolhttps://docs.python.org/dev/library/functions.html#bool
rangehttps://docs.python.org/dev/library/stdtypes.html#range
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
inthttps://docs.python.org/dev/library/functions.html#int
valuehttps://docs.python.org/dev/library/enum.html#enum.Enum.value
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
dataclasshttps://docs.python.org/dev/library/dataclasses.html#dataclasses.dataclass
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
__str__()https://docs.python.org/dev/reference/datamodel.html#object.__str__
__repr__()https://docs.python.org/dev/reference/datamodel.html#object.__repr__
Formatted string literalshttps://docs.python.org/dev/reference/lexical_analysis.html#f-strings
str.format()https://docs.python.org/dev/library/stdtypes.html#str.format
format()https://docs.python.org/dev/library/functions.html#format
__str__()https://docs.python.org/dev/reference/datamodel.html#object.__str__
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
StrEnumhttps://docs.python.org/dev/library/enum.html#enum.StrEnum
__str__()https://docs.python.org/dev/reference/datamodel.html#object.__str__
__str__()https://docs.python.org/dev/reference/datamodel.html#object.__str__
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
https://docs.python.org/dev/howto/enum.html#when-to-use-new-vs-init
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
https://docs.python.org/dev/howto/enum.html#finer-points
https://docs.python.org/dev/howto/enum.html#supported-dunder-names
__members__https://docs.python.org/dev/library/enum.html#enum.EnumType.__members__
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
_value_https://docs.python.org/dev/library/enum.html#enum.Enum._value_
https://docs.python.org/dev/howto/enum.html#supported-sunder-names
_name_https://docs.python.org/dev/library/enum.html#enum.Enum._name_
_value_https://docs.python.org/dev/library/enum.html#enum.Enum._value_
_missing_()https://docs.python.org/dev/library/enum.html#enum.Enum._missing_
_ignore_https://docs.python.org/dev/library/enum.html#enum.Enum._ignore_
listhttps://docs.python.org/dev/library/stdtypes.html#list
strhttps://docs.python.org/dev/library/stdtypes.html#str
_generate_next_value_()https://docs.python.org/dev/library/enum.html#enum.Enum._generate_next_value_
_add_alias_()https://docs.python.org/dev/library/enum.html#enum.Enum._add_alias_
_add_value_alias_()https://docs.python.org/dev/library/enum.html#enum.Enum._add_value_alias_
MultiValueEnumhttps://docs.python.org/dev/howto/enum.html#multivalueenum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
_order_https://docs.python.org/dev/library/enum.html#enum.Enum._order_
_order_https://docs.python.org/dev/library/enum.html#enum.Enum._order_
https://docs.python.org/dev/howto/enum.html#private-names
Private nameshttps://docs.python.org/dev/reference/expressions.html#private-name-mangling
https://docs.python.org/dev/howto/enum.html#enum-member-type
https://docs.python.org/dev/howto/enum.html#creating-members-that-are-mixed-with-other-data-types
inthttps://docs.python.org/dev/library/functions.html#int
strhttps://docs.python.org/dev/library/stdtypes.html#str
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
https://docs.python.org/dev/howto/enum.html#boolean-value-of-enum-classes-and-members
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
inthttps://docs.python.org/dev/library/functions.html#int
strhttps://docs.python.org/dev/library/stdtypes.html#str
Truehttps://docs.python.org/dev/library/constants.html#True
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
Truehttps://docs.python.org/dev/library/constants.html#True
https://docs.python.org/dev/howto/enum.html#enum-classes-with-methods
Planethttps://docs.python.org/dev/howto/enum.html#planet
dir()https://docs.python.org/dev/library/functions.html#dir
https://docs.python.org/dev/howto/enum.html#combining-members-of-flag
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
https://docs.python.org/dev/howto/enum.html#flag-and-intflag-minutia
https://docs.python.org/dev/howto/enum.html#how-are-enums-and-flags-different
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
https://docs.python.org/dev/howto/enum.html#enum-classes
EnumTypehttps://docs.python.org/dev/library/enum.html#enum.EnumType
__contains__()https://docs.python.org/dev/reference/datamodel.html#object.__contains__
__dir__()https://docs.python.org/dev/reference/datamodel.html#object.__dir__
__iter__()https://docs.python.org/dev/reference/datamodel.html#object.__iter__
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
EnumTypehttps://docs.python.org/dev/library/enum.html#enum.EnumType
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__getnewargs__()https://docs.python.org/dev/library/pickle.html#object.__getnewargs__
__str__()https://docs.python.org/dev/reference/datamodel.html#object.__str__
__repr__()https://docs.python.org/dev/reference/datamodel.html#object.__repr__
https://docs.python.org/dev/howto/enum.html#flag-classes
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
https://docs.python.org/dev/howto/enum.html#enum-members-aka-instances
EnumTypehttps://docs.python.org/dev/library/enum.html#enum.EnumType
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
https://docs.python.org/dev/howto/enum.html#flag-members
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
https://docs.python.org/dev/howto/enum.html#enum-cookbook
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
StrEnumhttps://docs.python.org/dev/library/enum.html#enum.StrEnum
Flaghttps://docs.python.org/dev/library/enum.html#enum.Flag
IntFlaghttps://docs.python.org/dev/library/enum.html#enum.IntFlag
https://docs.python.org/dev/howto/enum.html#omitting-values
autohttps://docs.python.org/dev/library/enum.html#enum.auto
objecthttps://docs.python.org/dev/library/functions.html#object
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
inthttps://docs.python.org/dev/library/functions.html#int
autohttps://docs.python.org/dev/library/enum.html#enum.auto
https://docs.python.org/dev/howto/enum.html#using-auto
autohttps://docs.python.org/dev/library/enum.html#enum.auto
objecthttps://docs.python.org/dev/library/functions.html#object
https://docs.python.org/dev/howto/enum.html#using-object
objecthttps://docs.python.org/dev/library/functions.html#object
__repr__()https://docs.python.org/dev/reference/datamodel.html#object.__repr__
https://docs.python.org/dev/howto/enum.html#using-a-descriptive-string
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
https://docs.python.org/dev/howto/enum.html#using-a-custom-new
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
https://docs.python.org/dev/howto/enum.html#orderedenum
IntEnumhttps://docs.python.org/dev/library/enum.html#enum.IntEnum
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
https://docs.python.org/dev/howto/enum.html#duplicatefreeenum
unique()https://docs.python.org/dev/library/enum.html#enum.unique
https://docs.python.org/dev/howto/enum.html#multivalueenum
https://docs.python.org/dev/howto/enum.html#planet
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
https://docs.python.org/dev/howto/enum.html#timeperiod
_ignore_https://docs.python.org/dev/library/enum.html#enum.Enum._ignore_
https://docs.python.org/dev/howto/enum.html#subclassing-enumtype
Enumhttps://docs.python.org/dev/library/enum.html#enum.Enum
EnumTypehttps://docs.python.org/dev/library/enum.html#enum.EnumType
Table of Contentshttps://docs.python.org/dev/contents.html
Enum HOWTOhttps://docs.python.org/dev/howto/enum.html
Programmatic access to enumeration members and their attributeshttps://docs.python.org/dev/howto/enum.html#programmatic-access-to-enumeration-members-and-their-attributes
Duplicating enum members and valueshttps://docs.python.org/dev/howto/enum.html#duplicating-enum-members-and-values
Ensuring unique enumeration valueshttps://docs.python.org/dev/howto/enum.html#ensuring-unique-enumeration-values
Using automatic valueshttps://docs.python.org/dev/howto/enum.html#using-automatic-values
Iterationhttps://docs.python.org/dev/howto/enum.html#iteration
Comparisonshttps://docs.python.org/dev/howto/enum.html#comparisons
Allowed members and attributes of enumerationshttps://docs.python.org/dev/howto/enum.html#allowed-members-and-attributes-of-enumerations
Restricted Enum subclassinghttps://docs.python.org/dev/howto/enum.html#restricted-enum-subclassing
Dataclass supporthttps://docs.python.org/dev/howto/enum.html#dataclass-support
Picklinghttps://docs.python.org/dev/howto/enum.html#pickling
Functional APIhttps://docs.python.org/dev/howto/enum.html#functional-api
Derived Enumerationshttps://docs.python.org/dev/howto/enum.html#derived-enumerations
IntEnumhttps://docs.python.org/dev/howto/enum.html#intenum
StrEnumhttps://docs.python.org/dev/howto/enum.html#strenum
IntFlaghttps://docs.python.org/dev/howto/enum.html#intflag
Flaghttps://docs.python.org/dev/howto/enum.html#flag
Othershttps://docs.python.org/dev/howto/enum.html#others
When to use __new__() vs. __init__()https://docs.python.org/dev/howto/enum.html#when-to-use-new-vs-init
Finer Pointshttps://docs.python.org/dev/howto/enum.html#finer-points
Supported __dunder__ nameshttps://docs.python.org/dev/howto/enum.html#supported-dunder-names
Supported _sunder_ nameshttps://docs.python.org/dev/howto/enum.html#supported-sunder-names
_Private__nameshttps://docs.python.org/dev/howto/enum.html#private-names
Enum member typehttps://docs.python.org/dev/howto/enum.html#enum-member-type
Creating members that are mixed with other data typeshttps://docs.python.org/dev/howto/enum.html#creating-members-that-are-mixed-with-other-data-types
Boolean value of Enum classes and membershttps://docs.python.org/dev/howto/enum.html#boolean-value-of-enum-classes-and-members
Enum classes with methodshttps://docs.python.org/dev/howto/enum.html#enum-classes-with-methods
Combining members of Flaghttps://docs.python.org/dev/howto/enum.html#combining-members-of-flag
Flag and IntFlag minutiahttps://docs.python.org/dev/howto/enum.html#flag-and-intflag-minutia
How are Enums and Flags different?https://docs.python.org/dev/howto/enum.html#how-are-enums-and-flags-different
Enum Classeshttps://docs.python.org/dev/howto/enum.html#enum-classes
Flag Classeshttps://docs.python.org/dev/howto/enum.html#flag-classes
Enum Members (aka instances)https://docs.python.org/dev/howto/enum.html#enum-members-aka-instances
Flag Membershttps://docs.python.org/dev/howto/enum.html#flag-members
Enum Cookbookhttps://docs.python.org/dev/howto/enum.html#enum-cookbook
Omitting valueshttps://docs.python.org/dev/howto/enum.html#omitting-values
Using autohttps://docs.python.org/dev/howto/enum.html#using-auto
Using objecthttps://docs.python.org/dev/howto/enum.html#using-object
Using a descriptive stringhttps://docs.python.org/dev/howto/enum.html#using-a-descriptive-string
Using a custom __new__()https://docs.python.org/dev/howto/enum.html#using-a-custom-new
OrderedEnumhttps://docs.python.org/dev/howto/enum.html#orderedenum
DuplicateFreeEnumhttps://docs.python.org/dev/howto/enum.html#duplicatefreeenum
MultiValueEnumhttps://docs.python.org/dev/howto/enum.html#multivalueenum
Planethttps://docs.python.org/dev/howto/enum.html#planet
TimePeriodhttps://docs.python.org/dev/howto/enum.html#timeperiod
Subclassing EnumTypehttps://docs.python.org/dev/howto/enum.html#subclassing-enumtype
Debugging C API extensions and CPython Internals with GDBhttps://docs.python.org/dev/howto/gdb_helpers.html
Functional Programming HOWTOhttps://docs.python.org/dev/howto/functional.html
Report a bughttps://docs.python.org/dev/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/howto/enum.rst?plain=1
indexhttps://docs.python.org/dev/genindex.html
moduleshttps://docs.python.org/dev/py-modindex.html
nexthttps://docs.python.org/dev/howto/functional.html
previoushttps://docs.python.org/dev/howto/gdb_helpers.html
Pythonhttps://www.python.org/
3.15.0a5 Documentationhttps://docs.python.org/dev/index.html
Python HOWTOshttps://docs.python.org/dev/howto/index.html
Enum HOWTOhttps://docs.python.org/dev/howto/enum.html
Copyrighthttps://docs.python.org/dev/copyright.html
History and Licensehttps://docs.python.org/license.html
Please donate.https://www.python.org/psf/donations/
Found a bughttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.