This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander.Belopolsky
Recipients Alexander.Belopolsky, Arfrever, Dag.Sverre.Seljebotn, belopolsky, christian.heimes, georg.brandl, loewis, mark.dickinson, meador.inge, ncoghlan, pitrou, python-dev, scoder, skrah, vstinner
Date 2012-09-02.14:21:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <8E6973A6-3FB4-4964-9F10-757D810B9351@gmail.com>
In-reply-to <1346589870.64.0.0796562503623.issue15814@psf.upfronthosting.co.za>
Content
On Sep 2, 2012, at 8:44 AM, Stefan Krah <report@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.
History
Date User Action Args
2012-09-02 14:21:49Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, loewis, georg.brandl, mark.dickinson, ncoghlan, belopolsky, pitrou, scoder, vstinner, christian.heimes, Arfrever, skrah, meador.inge, python-dev, Dag.Sverre.Seljebotn
2012-09-02 14:21:49Alexander.Belopolskylinkissue15814 messages
2012-09-02 14:21:48Alexander.Belopolskycreate