Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

We have a tool designed for this problem.  See: 
https://docs.python.org/3/library/reprlib.html#reprlib.recursive_repr

If you want to avoid a dependency, it is easy to inline the logic.  For an 
example, see the Python 2.7 version of collections.OrderedDict.__repr__.

----------
nosy: +rhettinger
priority: low -> normal

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to