-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
Hashable memoryviews #57620
Comments
This patch allows hashing of memoryviews, as discussed on python-dev. |
Does memory_hash() reject non-contiguous memory? _Py_HashBytes() might be reused by unicode_hash() for PyUnicode_1BYTE_KIND. |
Except these two minor nits, the patch looks good to me. |
It should, since it checks the strides array.
I don't really see how unicode hashing should be related to bytes |
I'm not sure that the "register" storage class specifier is still relevant with modern compilers: I'm pretty sure gcc ignores it unless -O0, and I think I've read somewhere Microsoft's compiler ignores it too. |
I don't think so either. I was lazily moving the original code, but I |
New changeset 215690b782f8 by Antoine Pitrou in branch 'default': |
Fixed, thanks. |
Reopening as a reminder that it isn't fixed yet in http://hg.python.org/features/pep-3118 . |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: