-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
allow using IntEnumMember as array index #9230
base: main
Are you sure you want to change the base?
Conversation
This test config |
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.
Many thanks for the PR - could you also add a check with an IntEnum
where negative values are used in the Enum?
Also, this should have a release note adding (the skip_release_notes
tag was erroneously added before) - create a new file called docs/upcoming_chanages/9230.improvement.rst
following the format suggested in https://github.com/numba/numba/blob/main/docs/upcoming_changes/README.rst (you can also look at some of the other files in https://github.com/numba/numba/tree/main/docs/upcoming_changes for an idea).
Adding more tests and a simple doc as you suggested right now. @gmarkall |
45056af
to
be4f5c6
Compare
Updated. (with force-push..) |
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'm finding that I can't make the tests added here fail on main
- @dlee992 is there a circumstance in which the tests fail on main
for you? (I'm using Python 3.10)
Em, I met this issue on my customised 0.57.1. Perhaps another PR has already fixed this somehow? |
I just realised what the problem with the test is - see the comment on the diff. |
Em, the error is |
It's because this was merge, which removed |
Got it. Work on this now. |
3130ca2
to
55bc20a
Compare
This can be in review status again. gentle cc @gmarkall |
Thank you for the heads up, it's done. |
Any chance to accept this PR? This would be really useful Thanks! |
@neich. Hi, Thanks for your notice. I think this is added into milestone 0.61.0-rc1, it should be reviewed and merged when core devs begin to take actions for all issues and PRs in this release candidate. Perhaps Oct or Nov this year, I guess. But you can use this patch locally as well, then don't have to wait for an official release. |
@dlee992 That's great! In the meantime I will use the numpy.intp explicit conversion and wait for the 0.61 release to get rid of it. Thanks! |
related with #7662. but fix the similar issue for np.array.