This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients eric.smith, remi.lapeyre, rhettinger
Date 2018-06-23.19:29:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529782153.92.0.56676864532.issue33947@psf.upfronthosting.co.za>
In-reply-to
Content
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__.
History
Date User Action Args
2018-06-23 19:29:13rhettingersetrecipients: + rhettinger, eric.smith, remi.lapeyre
2018-06-23 19:29:13rhettingersetmessageid: <1529782153.92.0.56676864532.issue33947@psf.upfronthosting.co.za>
2018-06-23 19:29:13rhettingerlinkissue33947 messages
2018-06-23 19:29:13rhettingercreate