It does, at least for built-in mutable types: >>> d = dict() >>> d[[1,2]] = 3 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unhashable type: 'list'
On Sat, Oct 18, 2014 at 2:22 PM, Jameson Nash <[email protected]> wrote: > Python doesn't stop you from using mutable keys either. And like Julia, it > just suggests that actually mutating the key is a bad idea. > > > On Saturday, October 18, 2014, Logan Diamond <[email protected]> > wrote: > >> Is this in the notable differences from other languages? >> http://docs.julialang.org/en/release-0.3/manual/noteworthy-differences/ >> >> As a pythonista originally, it was really unsettling to learn there's >> such a thing "mutable keys". >> >
