proposal for slice hashing
Will Bradshaw
defenastrator at gmail.com
Sat May 16 18:11:54 EDT 2020
On Tuesday, May 12, 2020 at 5:51:37 PM UTC-4, Paul Rubin wrote:
> Terry Reedy <tjreedy at udel.edu> writes:
> > Slice objects are similar to named tuples
>
> In that case making them hashable sounds like good sense.
I mean I've already made and tested a patch it wasn't hard. I did same day as I made the post. I've also done a bit of work on the proposal to make the key function changeable in functools.lru_cache though that is a bit more complex and will take a bit of refactoring to do right.
More information about the Python-list
mailing list