GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Colorful `pprint` · Issue #160466 · python/cpython

Colorful pprint #160466

New issue
Copy link
New issue
Copy link
Open
Open
Colorful pprint#160466
Copy link
Assignees
ZeroIntensity
Labels
sprintstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@ZeroIntensity
ZeroIntensity
opened on Oct 23, 2026
Issue body actions

Feature or enhancement

What's better than a pretty print? A colorful pretty print!
By extracting the syntax highlighting code from the REPL, we can get the same colorization for literals in the pprint module.

I had Codex make me an example, and it works pretty nicely:

Image

This will likely conflict with the PEP 813 reference implementation, so I'm going to keep the PR as a draft for now.

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:

Discussed at the sprint

Linked PRs

  • gh-160466: Add colors to the pprint module #160468
Reacted by Hugo van Kemenade, Eduardo Villalpando Mello and Bartosz Sławecki

Activity

  1. ZeroIntensity
    self-assigned this
    on Oct 23, 2026
  2. ZeroIntensity
    added
    type-featureA feature request or enhancementA feature request or enhancement
    sprint
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Oct 23, 2026
  3. github-project-automation
    added this to Sprinton Oct 23, 2026
  4. github-project-automation
    moved this to Todo in Sprinton Oct 23, 2026
  5. StanFromIreland commented on Oct 23, 2026

    @StanFromIreland
    StanFromIreland
    on Oct 23, 2026
    Member
    More actions

    This is a duplicate of #145217, no?

  6. hugovk commented on Oct 23, 2026

    @hugovk
    hugovk
    on Oct 23, 2026
    Member
    More actions

    Yes, I think the issue is a duplicate, but my PR has stalled so I welcome a new attempt!

    Do have a read through the comments on my PR and check the blockers are addressed or not relevant in your approach (I've not looked yet).

  7. ZeroIntensity commented on Oct 23, 2026

    @ZeroIntensity
    ZeroIntensity
    on Oct 23, 2026
    MemberAuthor
    More actions

    Ah, I thought the idea sounded familiar! I'll take a look at your PR.

    Reacted by Hugo van Kemenade
  8. warsaw commented on Oct 24, 2026

    @warsaw
    warsaw
    on Oct 24, 2026
    Member
    More actions

    Let's think about this in relation to the PEP 813 work.

  9. ZeroIntensity commented on Oct 24, 2026

    @ZeroIntensity
    ZeroIntensity
    on Oct 24, 2026
    MemberAuthor
    More actions

    Yeah, I don't plan on marking the PR as non-draft until a decision is made on PEP 813.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ZeroIntensity
    ZeroIntensity

Labels

sprintstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Projects

  • Sprint
    Status
    Todo
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.