[issue38366] dataclasses: generate the _hash_action table from the if-else tree

Io Mintz report at bugs.python.org
Thu Oct 3 19:04:49 EDT 2019


New submission from Io Mintz <benjabean1 at gmail.com>:

The dataclasses._hash_action table is currently a bit hard to read. It could be generated once from the if-else tree written in https://bugs.python.org/issue32929#msg312829 instead, which would both be easier to read and easier to maintain, while still maintaining the efficiency of the current dictionary.

----------
components: Library (Lib)
messages: 353887
nosy: iomintz
priority: normal
pull_requests: 16163
severity: normal
status: open
title: dataclasses: generate the _hash_action table from the if-else tree
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38366>
_______________________________________


More information about the Python-bugs-list mailing list