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 iritkatriel
Recipients danbst, iritkatriel
Date 2020-11-05.00:34:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604536485.23.0.325228408902.issue42259@roundup.psfhosted.org>
In-reply-to
Content
I think this is a bug. There is recursion detection in pprint for dicts, lists and tuples, but it only applies when __repr__ has not been overridden in a subclass.

If you remove the __repr__ definition from NiceObject then str(s) works.
History
Date User Action Args
2020-11-05 00:34:45iritkatrielsetrecipients: + iritkatriel, danbst
2020-11-05 00:34:45iritkatrielsetmessageid: <1604536485.23.0.325228408902.issue42259@roundup.psfhosted.org>
2020-11-05 00:34:45iritkatriellinkissue42259 messages
2020-11-05 00:34:45iritkatrielcreate