[issue40603] slice not hashable

Rémi Lapeyre report at bugs.python.org
Tue May 12 04:34:03 EDT 2020


Rémi Lapeyre <remi.lapeyre at henki.fr> 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/cpython/commit/a1351fbd884189329bbcb6c688ca992fc1afc3f6

Is this not needed anymore? Wouldn't this need to be discussed on python-ideas?

----------
nosy: +remi.lapeyre

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40603>
_______________________________________


More information about the Python-bugs-list mailing list