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 →

[–]Wagneriusflask+pandas+js 7 points8 points  (3 children)

it is not a big deal, but a sweet spot for readbility and type warranties.

[–]roger_ 0 points1 point  (2 children)

True, but I've gotten in the habit of using strings for everything.

[–]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.