[issue41383] Provide a limit arguments for __repr__
Rémi Lapeyre
report at bugs.python.org
Fri Jul 24 10:10:04 EDT 2020
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
Hi Bernat, have you looked into reprlib.repr()? It's an alternative implementation of repr() made for cases like this.
You may be interested in this PR too: https://github.com/python/cpython/pull/20925
Alternatively, I think pprint.pformat() may be useful for your purpose too.
----------
nosy: +remi.lapeyre
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41383>
_______________________________________
More information about the Python-bugs-list
mailing list