Re:PEP 435 Accepted – Adding an Enum type to the Python stan...
by saidajigumi on Friday May 10, 2013 @04:39PM
(#5688552)
Here's an example from the Python 3 docs[1] that specifically uses metaclass for exactly this scenario:
[1] http://docs.python.org/3/reference/datamodel.html#metaclass-...
[ Parent
| on HN ]
There are no comments on this comment yet.