4 ms·
> Python lacks this, so there is no spectacular benefit of using enums over just a list of strings. Enums represent a discrete set of constant values. They are
by rumanator 6y ago
> Python lacks this, so there is no spectacular benefit of using enums over just a list of strings.
Enums represent a discrete set of constant values. They are extremely helpful to communicate to developers what to expect from a component. Lists of strings do not come near to offer the same functionality.