You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, would be nice to be able to extract ok somehow. Right now this isn't possible at all as far as I can tell, one has to do hacks like e.entity.enum[int(e)].
Have you thought about using Python's native "Enum" or "IntEnum"? That would be an even more Pythonic way :) It's 3.4+, but there is backport in the form of the enum34 package if you still care about such old versions.
Hey
If you implement
__format__()
, you could enable a user to choose betweenok(1)
,ok
and1
. Think about it.The text was updated successfully, but these errors were encountered: