>> IMO, the danger of >> "@dataclass(hash=True)" far overweighs whatever convenience it might >> provide.
Is there any reason specifying has=True could set frozen=True unless the user specifically sets frozen=False? Or is that already the case? I think the folks that are concerned about this issue are quite right — most Python users equate immutable and hashable—so the dataclass API should reflect that. And this would still make it easy and clear to specify the unusual (and arguably dangerous) case of: hash=True, frozen=False -CHB > _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com