[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

proposal for slice hashing

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.