Alexander Belopolsky added the comment:

On Sep 2, 2012, at 8:44 AM, Stefan Krah <rep...@bugs.python.org> wrote:

> The totals are +11.5 :) for hashing, +1 for allowing non-contiguous and
> -2 for multi-dimensional

I have refrained from voting because in my line of work buffers or memoryviews 
deal with large objects that rarely serve as dictionary keys.  As a result, I 
have zero experince with hashing of buffers.  This observation supports the 
current consensus to limit hashing to 1d and 0d cases.  My only concern is that 
with hash(m) == hash(m.tobytes()) implementing multidimensional restriction 
will require artificial  if ndim > 1 check and an extra sentence in the docs 
while not simplifying anything.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15814>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to