[issue15814] memoryview: equality-hash invariant

Martin v. Löwis report at bugs.python.org
Sat Sep 1 20:22:28 CEST 2012


Martin v. Löwis added the comment:

Am 01.09.12 20:06, schrieb Stefan Krah:
>    - b'abc'[::-1] hashes, but memoryview(b'abc')[::-1] does not

I find that memoryview(b'abc')[::-1] is a strange thing to have,
anyway, so I'm not bothered by it behaving different. I can accept
that it needs to be supported for consistency, but I would recommend
against using it in applications. Who needs reversed memory, anyway?
The only case were I ever needed reversal is lists (typically sorted,
perhaps cronological).

----------

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


More information about the Python-bugs-list mailing list