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 Mariatta, eric.smith, fdrake, iritkatriel, palakjha, rhettinger, serhiy.storchaka
Date 2020-08-15.15:59:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597507196.68.0.24981730344.issue39994@roundup.psfhosted.org>
In-reply-to
Content
import pprint

class MyDict(dict):
    def __repr__(self):
        return '*'*len(dict.__repr__(self))

if __name__ == '__main__':
    d=MyDict({})
    print('pprint.pformat(d):\n%s' % pprint.pformat(d))
    print('pprint.pformat(d, width=1, indent=0):\n%s' % pprint.pformat(d, width=1, indent=0))



Output:

pprint.pformat(d):
**
pprint.pformat(d, width=1, indent=0):
{}
History
Date User Action Args
2020-08-15 15:59:56iritkatrielsetrecipients: + iritkatriel, fdrake, rhettinger, eric.smith, serhiy.storchaka, Mariatta, palakjha
2020-08-15 15:59:56iritkatrielsetmessageid: <1597507196.68.0.24981730344.issue39994@roundup.psfhosted.org>
2020-08-15 15:59:56iritkatriellinkissue39994 messages
2020-08-15 15:59:56iritkatrielcreate