Skip to content

BUG: fix collections.Hashable behaviour for numpy arrays. #5326

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

Merged
merged 1 commit into from
Nov 30, 2014

Conversation

cournape
Copy link
Member

While hash(a) raises an exception as expected for an array a, a.__hash__() does not, and isinstance(a, collections.IsHashable) returns True.

This fixes the issuew/ one trivial test.

charris added a commit that referenced this pull request Nov 30, 2014
BUG: fix collections.Hashable behaviour for numpy arrays.
@charris charris merged commit 665e52e into numpy:master Nov 30, 2014
@charris
Copy link
Member

charris commented Nov 30, 2014

Thanks David.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants