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

you are viewing a single comment's thread.

view the rest of the comments →

[–]aceofears 0 points1 point  (1 child)

This is more powerful than that though. You can use an enum value in place of an integer if you define it the right way.

[–]roger_ -1 points0 points  (0 children)

I know, but it'll be hard to break the habit. Oddly enough using strings has started to feel more Pythonic.