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
Implement sort/sorted with key. #4977
Conversation
As title.
576ebd9
to
ae20b1c
Compare
numba/targets/listobj.py
Outdated
_sort_check_key(key) | ||
_sort_check_reverse(reverse) | ||
|
||
if (isinstance(key, (types.NoneType, types.Omitted)) or key is None): |
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.
use cgutils.is_nonelike()
instead
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.
Why is this in cgutils
? It's typing not codegen?
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.
good point. there's no typing util either. will need to sort that out later.
As title
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.
Thanks for the patch. This PR is good for merging.
As title.