2 ms·
There must be something I don't get. What is the advantage of creating an Enum class to store relationships rather than just using a dictionary or namedtuple? (
by mythrwy 10y ago
There must be something I don't get.
What is the advantage of creating an Enum class to store relationships rather than just using a dictionary or namedtuple?
(Arguably) readability? I mean, I see it works but fail to grasp the advantage.