Skip to content

Pretty print collections.defaultdict as if it were a regular dict #3

@rcfox

Description

@rcfox

pprint.pprint doesn't pretty print collections.defaultdict very nicely. It'd be great if you could at the very least just run them through dict() before printing.

Bonus points for including the fact that it's a defaultdict, and its default function, but that's not really as useful in my experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions