[issue39994] pprint handling of dict subclasses that override __repr__

Irit Katriel report at bugs.python.org
Sat Aug 15 10:05:42 EDT 2020


Irit Katriel <iritkatriel at yahoo.com> added the comment:

While writing the tests I see that it's even more interesting:

(Pdb) dd = MyDict()
(Pdb) pprint.pformat(dd)
'{}'
(Pdb) pprint.saferepr(dd)
'I do my own thing ....'

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39994>
_______________________________________


More information about the Python-bugs-list mailing list