[issue40603] slice not hashable

2020-05-12 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think slices were explicitly made not hashable to avoid issues to avoid issues with dictionaries, see discussion at https://mail.python.org/pipermail/python-list/2001-March/076101.html and issue 408326. The commit that did this is https://github.com/python/

[issue40603] slice not hashable

2020-05-11 Thread Danni
Danni added the comment: Would be happy to help with this. Sent a PR soon ;) -- nosy: +isdanni ___ Python tracker ___ ___ Python-bu

[issue40603] slice not hashable

2020-05-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a reasonable use case. +1 for making slice() hashable. Will, you're welcome to submit a PR. If not, I'm sure someone else would be happy to scoop this up :-) -- keywords: +easy (C) nosy: +rhettinger _

[issue40603] slice not hashable

2020-05-11 Thread Steven D'Aprano
Change by Steven D'Aprano : -- components: +Interpreter Core -ctypes type: behavior -> enhancement ___ Python tracker ___ ___ Python

[issue40603] slice not hashable

2020-05-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please re-upload the patch file as an uncompressed text file, as it is quite difficult for many people to view zip files in their browser. -- nosy: +steven.daprano title: slice does not slice -> slice not hashable ___