Message169409
> Am 29.08.12 20:01, schrieb Antoine Pitrou:
> >> I think the proper solution is to make memoryview objects unhashable.
> >
> > Disagreed. If memoryviews are to be bytes-like objects they should be
> > hashable (at least when readonly).
>
> So what specific hash algorithm do you propose?
The current algorithm works well in conjunction with bytes objects.
> My claim is that any hash definition for memoryviews will have a
> *fundamental* flaw, failing to provide the basic property
> that A==B must imply hash(A)==hash(B), making it actually work
> incorrectly
Why is there such a fundamental flaw? |
|
| Date |
User |
Action |
Args |
| 2012-08-29 19:06:29 | pitrou | set | recipients:
+ pitrou, loewis, georg.brandl, mark.dickinson, ncoghlan, vstinner, christian.heimes, Arfrever, skrah, meador.inge |
| 2012-08-29 19:06:28 | pitrou | link | issue15814 messages |
| 2012-08-29 19:06:28 | pitrou | create | |
|