Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use Enum, but use a hacky close-enough replacement.
- Loading branch information
Don't use Enum, but use a hacky close-enough replacement.
76f279b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use
enum34
from PyPI.76f279b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny hack vs another dependency. I'm not sure which one I prefer.
76f279b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what about using a conditional dependency (
':python_version=="3.3"': ['enum34'],
) ? :)76f279b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think this is simpler. What are the advantages of using
Enum
instead of this?76f279b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imho, using the standard lib is usually an "obvious way to do it"…
But this is not an advantage ^^"
In fact I just don't understand why you replaced 1, 2 & 3 by
object()
, but it doesn't matter x)