Eric V. Smith <[email protected]> added the comment:
That's a good idea, Raymond. >>> [x.__hash__ is None for x in (list, dict, set, frozenset)] [True, True, True, False] I don't think this change would cause any backward compatibility issues, except it would now allow a default of something bad like: >>> class BadList(list): ... def __hash__(self): return 0 ... >>> isinstance(BadList(), list), BadList.__hash__ is None (True, False) I can't say I care too much about now allowing things that didn't used to be allowed, especially if they're poorly designed like BadList. I'll put together a PR. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue44674> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
