News for hackers. Stuff that matters.
Re:Using Enumerated Types in Python by rumanator on Saturday June 06, 2020 @07:47PM (#23443375)
> 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.

There are no comments on this comment yet.