commit | 9989efbb653e8cbd08e51b4d79d094605c8b23b8 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Sat Mar 24 19:31:29 2018 -0700 |
committer | GitHub <noreply@github.com> | Sat Mar 24 19:31:29 2018 -0700 |
tree | 2c3a660e757d76d6de3b71fad2c08f9c0a8f946c | |
parent | 02c19a6fc08dd37a3a89cf1b9800c869c338bd3c [diff] |
bpo-33134: dataclasses: use function dispatch table for hash, instead of a string lookup which then is tested with if tests. (GH-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 01d618c5606a239b03ad1269541eddb6e724775d) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>