-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now OpExpr.op
is a enum
#11263
Now OpExpr.op
is a enum
#11263
Conversation
How's the performance of Enum in current CPython? I just notice that python/cpython#17669 hasn't been merged yet. |
@97littleleaf11 do you have any specific benchmark in mind? |
@97littleleaf11 one more question (looks like you are quite familiar with
https://github.com/python/mypy/pull/11263/checks?check_run_id=3790982937 It looks like some |
To be honest, I don't think that is worth it, since mypyc's enum support is still incomplete. Also, I kind of like being able to refer to operations using literals, since there's no ambiguity. This requires remembering (or looking up) the operator vs enum item name mapping. |
Ok, fair enough. I see that this is the second PR I am struggling with |
I think we don't support inheriting from str currently |
I hope this this would help to maintain simplier and more safe codebase.