3 ms·
Great write-up, thank you! My one suggestion is that you drop the enum meta-programming; it is a distraction. Instead do what you yourself propose: use a simple
by atdt 8y ago
Great write-up, thank you! My one suggestion is that you drop the enum meta-programming; it is a distraction. Instead do what you yourself propose: use a simple class with int attributes.
- tekknolagi 8y agoYeah, that is probably the way to go. But you know how it is... I got sucked down a rabbit-hole while trying to figure out the best enum representation in Python.
- lozenge 8y agoFOO, BAR =range(2) if you're assuming python knowledge
- tekknolagi 8y agoWow, that's a pretty good one. Thank you!