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

Eric V. Smith report at bugs.python.org
Fri Oct 4 07:24:32 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

Thank you for your contribution, @iomintz, but I'm not going to accept this change. I don't think it improves the clarity of the code. And I realize this is wholly a subjective decision, and others may disagree. But to me, looking at the table it's clear that each case is handled correctly, while looking through the code I'd need to reason about it for each case.

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list