Rémi Lapeyre <remi.lape...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue41383> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com