]> granicus.if.org Git - python/commit
bpo-33134: dataclasses: use function dispatch table for hash, instead of a string...
authorEric V. Smith <ericvsmith@users.noreply.github.com>
Sun, 25 Mar 2018 02:10:14 +0000 (22:10 -0400)
committerGitHub <noreply@github.com>
Sun, 25 Mar 2018 02:10:14 +0000 (22:10 -0400)
commit01d618c5606a239b03ad1269541eddb6e724775d
tree2e1d50fb4f5c704564de39e72aaf99f716050d02
parentf96ddade0094d162cb6c2fd7255c5e8a90b5c37d
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.
Lib/dataclasses.py
Misc/NEWS.d/next/Library/2018-03-24-19-34-26.bpo-33134.hbVeIX.rst [new file with mode: 0644]