diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-26 09:43:35 (GMT) |
---|---|---|
committer | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2018-02-26 09:43:35 (GMT) |
commit | 4cffe2f66b581fa7538f6de884d54a5c7364d8e0 (patch) | |
tree | 91054ec09246654d2fd5b9edbce10585a4bd16e4 /Python/codecs.c | |
parent | 1a5790689f134881d8e7cc8b1ac45121468823c6 (diff) | |
download | cpython-4cffe2f66b581fa7538f6de884d54a5c7364d8e0.zip cpython-4cffe2f66b581fa7538f6de884d54a5c7364d8e0.tar.gz cpython-4cffe2f66b581fa7538f6de884d54a5c7364d8e0.tar.bz2 |
bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (GH-5891) (GH-5902)
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 dbf9cff48a4ad0fd58e1c623ce1f36c3dd3d5f38)
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions