Skip to content

[3.7] bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (GH-5891)#5902

Merged
ericvsmith merged 1 commit intopython:3.7from
miss-islington:backport-dbf9cff-3.7
Feb 26, 2018
Merged

[3.7] bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (GH-5891)#5902
ericvsmith merged 1 commit intopython:3.7from
miss-islington:backport-dbf9cff-3.7

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 26, 2018

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.
(cherry picked from commit dbf9cff)

Co-authored-by: Eric V. Smith ericvsmith@users.noreply.github.com

https://bugs.python.org/issue32929

…olean unsafe_hash. (pythonGH-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.
(cherry picked from commit dbf9cff)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
@miss-islington
Copy link
Contributor Author

@ericvsmith: Backport status check is done, and it's a success ✅ .

@ericvsmith ericvsmith merged commit 4cffe2f into python:3.7 Feb 26, 2018
@miss-islington
Copy link
Contributor Author

Thanks, @ericvsmith!

@miss-islington miss-islington deleted the backport-dbf9cff-3.7 branch February 26, 2018 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants