Skip to content

gh-112632: Add optional keyword-only argument block_style to pprint#136964

Open
donbarbos wants to merge 44 commits intopython:mainfrom
donbarbos:issue-112632
Open

gh-112632: Add optional keyword-only argument block_style to pprint#136964
donbarbos wants to merge 44 commits intopython:mainfrom
donbarbos:issue-112632

Conversation

@donbarbos
Copy link
Contributor

@donbarbos donbarbos commented Jul 22, 2025

cc @tomasr8 as the previous reviewer (tests coverage problem fixed)


📚 Documentation preview 📚: https://cpython-previews--136964.org.readthedocs.build/

stodoran and others added 30 commits January 24, 2025 18:19
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
Co-authored-by: donBarbos <donbarbos@proton.me>
@hugovk
Copy link
Member

hugovk commented Mar 24, 2026

Thanks for working on this, it's looking good!

Is "block style JSON formatting" an established term? Wondering if there's a better explanation. Maybe just "pretty-printed JSON" is better?

I've also opened donbarbos#1 to suggest renaming block_style to expand, as it mirrors compact well.

Black uses the word "explode", which I'm not sure fits here, but "expand" is similar.

And let's update from main after merging donbarbos#1, it's been a while since this ran CI.

@donbarbos donbarbos requested a review from AA-Turner as a code owner March 25, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants