[issue13411] Hashable memoryviews

Antoine Pitrou report at bugs.python.org
Thu Nov 17 17:57:49 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Does memory_hash() reject non-contiguous memory?

It should, since it checks the strides array.

> _Py_HashBytes() might be reused by unicode_hash() for PyUnicode_1BYTE_KIND.

I don't really see how unicode hashing should be related to bytes
hashing (even though apparently an (outdated?) test checks for that).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13411>
_______________________________________


More information about the Python-bugs-list mailing list