[issue35761] Allow dataclasses to be updated in place

Eric V. Smith report at bugs.python.org
Thu Jan 17 18:29:31 EST 2019


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

I agree that I don't see the point, unless there's something I'm missing with other_instance. Or maybe the proposal is for it to also work with frozen dataclasses? I'm definitely -1 on that.

So unless there's something I'm missing where normal attribute assignment wouldn't work, I'm leaning toward rejecting this. What is it about dataclasses that would need this feature, where regular classes don't? Just do what you'd do with regular classes.

----------

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


More information about the Python-bugs-list mailing list