On 6 January 2017 at 09:02, Neil Girdhar <mistersh...@gmail.com> wrote: > > Yeah, looks like you missed a revision. There were two emails. I suggested > adding ImmutableIterable and ImmutableSet, and so there is an obvious > implementation of __hash__ for both.
OK, sorry. The proposal is still getting more complicated, though, and I really don't see how it's better than having some low-level helper functions for people who need to build custom __hash__ implementations. The "one obvious way" to customise hashing is to implement __hash__, not to derive from a base class that says my class is an Immutable{Iterable,Set}. Paul _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/