[issue33947] Dataclasses can raise RecursionError in __repr__
Rémi Lapeyre
report at bugs.python.org
Sat Jun 23 15:13:22 EDT 2018
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
This seems like a difficult problem to tackle in all cases, if two dataclasses reference each other the cycle could be complex to identify and introduce complexity.
The way repr is defined is part of PEP 557 and actually force this behavior.
Should the `repr` parameter default to False or not include the repr of each field?
----------
nosy: +remi.lapeyre
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33947>
_______________________________________
More information about the Python-bugs-list
mailing list