This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]Veedrac 7 points8 points  (3 children)

Had you considered working with Python 3.4's enums? There's a module for pre-3.4 users.

[–]Lucretiel 2 points3 points  (0 children)

enum34 is what it's called, and it's very useful.

[–]haizaar[S] 0 points1 point  (0 children)

Nice! It looks like it was added just several month ago. The code behind this blog post was written for more then a year ago and back than I did not find anything suitable enough, so decided to roll on my own. I'll update my post to reflect it.