Skip to content

[3.7] bpo-33134: dataclasses: use function dispatch table for hash, instead of a string lookup which then is tested with if tests. (GH-6222)#6224

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-01d618c-3.7
Mar 25, 2018

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 25, 2018

Copy link
Copy Markdown
Contributor
  • Change _hash_action to be a function table lookup, instead of a list
    of strings which is then tested with if statements.
    (cherry picked from commit 01d618c)

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

https://bugs.python.org/issue33134

… of a string lookup which then is tested with if tests. (pythonGH-6222)

* Change _hash_action to be a function table lookup, instead of a list
of strings which is then tested with if statements.
(cherry picked from commit 01d618c)

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

Copy link
Copy Markdown
Contributor Author

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

@miss-islington miss-islington merged commit 9989efb into python:3.7 Mar 25, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks!

@miss-islington miss-islington deleted the backport-01d618c-3.7 branch March 25, 2018 02:31
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