Skip to content
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

Merged
merged 2 commits into from Dec 18, 2019

Conversation

stuartarchibald
Copy link
Contributor

As title.

_sort_check_key(key)
_sort_check_reverse(reverse)

if (isinstance(key, (types.NoneType, types.Omitted)) or key is None):
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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.

numba/tests/test_sort.py Outdated Show resolved Hide resolved
numba/tests/test_sort.py Outdated Show resolved Hide resolved
numba/tests/test_sort.py Outdated Show resolved Hide resolved
numba/tests/test_sort.py Outdated Show resolved Hide resolved
numba/tests/test_sort.py Outdated Show resolved Hide resolved
numba/tests/test_sort.py Outdated Show resolved Hide resolved
numba/tests/test_sort.py Outdated Show resolved Hide resolved
Copy link
Member

@sklam sklam left a 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.

@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Dec 18, 2019
@seibert seibert merged commit 890c5c3 into numba:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants