Skip to content

Add default behaviour to pprint.pprint #116041

@Privat33r-dev

Description

@Privat33r-dev

Proposal:

json.dumps contains default parameter which allows it to handle custom and unsupported internal objects. While pprint module's functions and objects are lacking this functionality. I suggest to add it so users can pprint even more diverse data. It might also reduce requests for different classes' support for pprint module.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions