Python and default dict, how to pprint June 12, 2023 by Tarik I’ve used pprint(dict(defaultdict)) before as a work-around.