Skip to content

gh-145153: The PEP 813 (pretty print protocol) reference implementation - #144931

Closed
warsaw wants to merge 55 commits into
python:mainfrom
warsaw:pprint
Closed

warsaw wants to merge 55 commits into
python:mainfrom
warsaw:pprint

Conversation

@warsaw

@warsaw warsaw commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

warsaw added 30 commits October 25, 2025 13:47
* Update the docs on the `print()` function to describe the new `pretty` keyword
* Document the `__pprint__()` protocol.
* Add a test for the `__pprint__()` protocol method.
* Update the docs on the `print()` function to describe the new `pretty` keyword
* Document the `__pprint__()` protocol.
* Add a test for the `__pprint__()` protocol method.
@warsaw warsaw changed the title The PEP 813 (pretty print protocol) reference implementation gh-#145153: The PEP 813 (pretty print protocol) reference implementation Feb 24, 2026
@warsaw warsaw changed the title gh-#145153: The PEP 813 (pretty print protocol) reference implementation gh-145153: The PEP 813 (pretty print protocol) reference implementation Feb 24, 2026
For `print(..., pretty=object)` simplify so that it's not an object that has a .pformat() method, but it just
needs to be a callable taking a single arg, returning the pretty formatted string.
* Document it in the C-API docs.
* Express the refcounting semantics in refcounts.dat.
* Describe PyObject_Pretty in the stable_abi.dat and stable_abi.toml files.
* Add tests to test_capi/test_abstract.py
@warsaw warsaw self-assigned this Feb 24, 2026
@warsaw
warsaw requested a review from ericvsmith February 24, 2026 18:04
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 7, 2026
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 13, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Oct 16, 2026
@warsaw

warsaw commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Closing, in favor of @ericvsmith 's as yet un-PR'd reference implementation branch.

@warsaw warsaw closed this Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants