Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
pprint.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 17, 2026
gh-155596: Fix pprint expand mode ignoring width for nested values (#155926)
cobed95
authored
8759666
View commit details
Copy full SHA for 8759666
View code at this point
Browse repository at this point
Commits on May 22, 2026
gh-149189: Revert "Modern defaults for `pprint` (#149190)" (#150249)
hugovk
authored
de7c3bf
View commit details
Copy full SHA for de7c3bf
View code at this point
Browse repository at this point
Commits on May 5, 2026
gh-149189: Modern defaults for `pprint` (#149190)
hugovk
authored
426f99c
View commit details
Copy full SHA for 426f99c
View code at this point
Browse repository at this point
Commits on Apr 14, 2026
gh-134551: Add t-strings support to pprint (#134577)
Show description for 74a4f8c
3 people
authored
74a4f8c
View commit details
Copy full SHA for 74a4f8c
View code at this point
Browse repository at this point
Commits on Apr 7, 2026
gh-112632: Add optional keyword-only argument `expand` to `pprint` (#136964)
Show description for 132abfd
5 people
authored
132abfd
View commit details
Copy full SHA for 132abfd
View code at this point
Browse repository at this point
Commits on Mar 13, 2026
gh-145887: Use `write()` instead of `stream.write()` in `PrettyPrinter._pprint_frozendict` (#145894)
devdanzin
authored
0b6a234
View commit details
Copy full SHA for 0b6a234
View code at this point
Browse repository at this point
Commits on Feb 21, 2026
gh-141510: Support frozendict in pprint (#144908)
Show description for 770d354
vstinner
and
devdanzin
authored
770d354
View commit details
Copy full SHA for 770d354
View code at this point
Browse repository at this point
Commits on Jun 24, 2025
GH-90117: Check for list and tuple before MappingView in pprint (GH-135779)
brandtbucher
authored
ee0e22c
View commit details
Copy full SHA for ee0e22c
View code at this point
Browse repository at this point
Commits on May 20, 2025
gh-90117: handle dict and mapping views in pprint (#30135)
Show description for c7f8e70
6 people
authored
c7f8e70
View commit details
Copy full SHA for c7f8e70
View code at this point
Browse repository at this point
Commits on Aug 7, 2024
gh-118761: Improve import time of `pprint` (#122725)
Show description for 42d9bec
hugovk
and
AA-Turner
authored
42d9bec
View commit details
Copy full SHA for 42d9bec
View code at this point
Browse repository at this point
Commits on Dec 13, 2023
[pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter (#112963)
Show description for 2a3c37c
KrySeyt
and
Eclips4
authored
2a3c37c
View commit details
Copy full SHA for 2a3c37c
View code at this point
Browse repository at this point
Commits on Jul 25, 2022
gh-92546: Move pprint benchmark into pyperformance (GH-94613)
Show description for c514094
arhadthedev
authored
c514094
View commit details
Copy full SHA for c514094
View code at this point
Browse repository at this point
Commits on Oct 21, 2021
bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)
ericvsmith
authored
087f089
View commit details
Copy full SHA for 087f089
View code at this point
Browse repository at this point
Commits on Jul 19, 2021
bpo-41546: make pprint (like print) not write to stdout when it is None (GH-26810)
iritkatriel
authored
aab1899
View commit details
Copy full SHA for aab1899
View code at this point
Browse repository at this point
Commits on Apr 13, 2021
bpo-43080: pprint for dataclass instances (GH-24389)
Show description for 11159d2
LewisGaul
authored
11159d2
View commit details
Copy full SHA for 11159d2
View code at this point
Browse repository at this point
Commits on Mar 24, 2021
bpo-42914: add a pprint underscore_numbers option (GH-24864)
Show description for 3ba3d51
sblondon
authored
3ba3d51
View commit details
Copy full SHA for 3ba3d51
View code at this point
Browse repository at this point
Commits on Nov 23, 2020
bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small containers (GH-22120)
iritkatriel
authored
ff420f0
View commit details
Copy full SHA for ff420f0
View code at this point
Browse repository at this point
Commits on Aug 30, 2020
bpo-39994: Fix pprint handling of dict subclasses that override __repr__ (GH-21892)
Show description for 582f137
iritkatriel
authored
582f137
View commit details
Copy full SHA for 582f137
View code at this point
Browse repository at this point
Commits on Jun 26, 2019
bpo-37376: pprint support for SimpleNamespace (GH-14318)
Show description for 06a8916
carlbordum
authored and
miss-islington
committed
06a8916
View commit details
Copy full SHA for 06a8916
View code at this point
Browse repository at this point
Commits on Mar 22, 2019
bpo-30670: Add pp function to the pprint module (GH-11769)
Rémi Lapeyre
authored and
rhettinger
committed
96831c7
View commit details
Copy full SHA for 96831c7
View code at this point
Browse repository at this point
Commits on Dec 17, 2018
bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
Show description for 8db5b54
vstinner
authored
8db5b54
View commit details
Copy full SHA for 8db5b54
View code at this point
Browse repository at this point
Commits on Apr 17, 2016
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
serhiy-storchaka
committed
6a7b3a7
View commit details
Copy full SHA for 6a7b3a7
View code at this point
Browse repository at this point
Commits on May 16, 2015
Issue #18682: Optimized pprint functions for builtin scalar types.
serhiy-storchaka
committed
8eb1f07
View commit details
Copy full SHA for 8eb1f07
View code at this point
Browse repository at this point
Commits on May 12, 2015
Issue #23870: The pprint module now supports all standard collections
Show description for bedbf96
serhiy-storchaka
committed
bedbf96
View commit details
Copy full SHA for bedbf96
View code at this point
Browse repository at this point
Commits on Apr 6, 2015
Issue #22721: An order of multiline pprint output of set or dict containing
Show description for 62aa7dc
serhiy-storchaka
committed
62aa7dc
View commit details
Copy full SHA for 62aa7dc
View code at this point
Browse repository at this point
Commits on Mar 26, 2015
Issue #23775: pprint() of OrderedDict now outputs the same representation
Show description for aa4c36f
serhiy-storchaka
committed
aa4c36f
View commit details
Copy full SHA for aa4c36f
View code at this point
Browse repository at this point
Issue #23776: Removed asserts from pprint.PrettyPrinter constructor.
serhiy-storchaka
committed
f3fa308
View commit details
Copy full SHA for f3fa308
View code at this point
Browse repository at this point
Commits on Mar 24, 2015
Issue #23502: The pprint module now supports mapping proxies.
Show description for 87eb482
serhiy-storchaka
committed
87eb482
View commit details
Copy full SHA for 87eb482
View code at this point
Browse repository at this point
Issue #17530: pprint now wraps long bytes objects and bytearrays.
serhiy-storchaka
committed
022f203
View commit details
Copy full SHA for 022f203
View code at this point
Browse repository at this point
Issue #23741: Slightly refactor the pprint module to make it a little more
Show description for 8e2aa88
serhiy-storchaka
committed
8e2aa88
View commit details
Copy full SHA for 8e2aa88
View code at this point
Browse repository at this point
Commits on Feb 14, 2015
Issue #19105: pprint now more efficiently uses free space at the right.
serhiy-storchaka
committed
a750ce3
View commit details
Copy full SHA for a750ce3
View code at this point
Browse repository at this point
Commits on Dec 20, 2014
Issue #19104: pprint now produces evaluable output for wrapped strings.
serhiy-storchaka
committed
fe3dc37
View commit details
Copy full SHA for fe3dc37
View code at this point
Browse repository at this point
Commits on Oct 3, 2013
Remove builtin "caching" in pprint
pitrou
committed
7d36e2f
View commit details
Copy full SHA for 7d36e2f
View code at this point
Browse repository at this point
Commits on Oct 2, 2013
Use cached builtins.
serhiy-storchaka
committed
57d5c08
View commit details
Copy full SHA for 57d5c08
View code at this point
Browse repository at this point
Issue #19132: The pprint module now supports compact mode.
serhiy-storchaka
committed
7c411a4
View commit details
Copy full SHA for 7c411a4
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.