Slices are mutable, and not hashable.

On Thu, Mar 28, 2013 at 6:33 PM, Matthew Rocklin
<notifications@github.com>wrote:

> In logpy/util.py:
>
> > @@ -54,7 +54,10 @@ def multihash(x):
> >              return hash(tuple(map(multihash, x)))
> >          if type(x) is dict:
> >              return hash(frozenset(map(multihash, x.items())))
> > +        if type(x) is slice:
> > +            return hash((x.start, x.stop, x.step))
>
> I'm surprised that this was necessary. I guess slices are mutable? Why?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/logpy/logpy/pull/21/files#r3580126>
> .
>