SIGN IN SIGN UP

bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (#5891)

unsafe_hash=False is now the default. It is the same behavior as the old hash=None parameter. unsafe_hash=True will try to add __hash__. If it already exists, TypeError is raised.
E
Eric V. Smith committed
dbf9cff48a4ad0fd58e1c623ce1f36c3dd3d5f38
Parent: 9c17e3a
Committed by GitHub <noreply@github.com> on 2/26/2018, 2:30:17 AM