Skip to content

pprint.pp doesn't document the addition of expand #160586

Closed

Description

@nineteendo

Activity

  1. hugovk commented on Oct 24, 2026

    @hugovk
    Member

    The pprint.PrettyPrinter class has:

    Changed in version 3.4: Added the compact parameter.

    Changed in version 3.8: Added the sort_dicts parameter.

    Changed in version 3.10: Added the underscore_numbers parameter.

    Changed in version 3.11: No longer attempts to write to sys.stdout if it is None.

    Changed in version 3.15: Added the expand parameter.

    These parameters were all added to the pprint.pp function as well, but none are listed underneath it.

    Should we repeat these under ppprint.pp? (Although pp was added in 3.8 so the first two don't apply.)

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Oct 24, 2026
  3. nineteendo commented on Oct 24, 2026

    @nineteendo
    ContributorAuthor

    I think that would be clearest, you have to jump to pp anyway to read their meaning.

  4. hugovk commented on Oct 24, 2026

    @hugovk
    Member

    Okay, would you like to open a PR for this?

  5. added a commit that references this issue on Oct 24, 2026
  6. added 2 commits that reference this issue on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directory

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions