[New-bugs-announce] [issue46693] dataclass generated __str__ does not use overridden member __str__
Bruce Eckel
report at bugs.python.org
Wed Feb 9 12:18:08 EST 2022
New submission from Bruce Eckel <bruceteckel at gmail.com>:
When creating a dataclass using members of other classes that have overridden their __str__ methods, the __str__ method synthesized by the dataclass ignores the overridden __str__ methods in its component members.
Demonstrated in attached file.
----------
components: Interpreter Core
files: DataClassStrBug.py
messages: 412927
nosy: Bruce Eckel
priority: normal
severity: normal
status: open
title: dataclass generated __str__ does not use overridden member __str__
type: behavior
versions: Python 3.10
Added file: https://bugs.python.org/file50611/DataClassStrBug.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46693>
_______________________________________
More information about the New-bugs-announce
mailing list