Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
gh-130167: Optimise
textwrap.dedent()
- #131919
#131919
Merged
AA-Turner
merged 11 commits into
python:main
python/cpython:main
from
AA-Turner:tw-dedent
AA-Turner/cpython:tw-dedent
Copy head branch name
Mar 31, 2025
Conversation
Commits
11
(11)
Checks
Files changed
Merged
gh-130167: Optimise
textwrap.dedent()
#131919
AA-Turner
merged 11 commits into
python:main
python/cpython:main
from
AA-Turner:tw-dedent
AA-Turner/cpython:tw-dedent
Copy head branch name
Commits
Commits on Mar 30, 2025
Add whitespace tests
AA-Turner
committed
be59df8
View commit details
Copy full SHA for be59df8
Browse repository at this point
Optimise ``textwrap.dedent()``
Show description for fec6717
AA-Turner
and
Marius-Juston
committed
fec6717
View commit details
Copy full SHA for fec6717
Browse repository at this point
Further micro-optimisation for entirely blank input
AA-Turner
committed
19e76d3
View commit details
Copy full SHA for 19e76d3
Browse repository at this point
whitespace
AA-Turner
committed
850c07a
View commit details
Copy full SHA for 850c07a
Browse repository at this point
Use margin as the loop index variable
AA-Turner
committed
796fb3e
View commit details
Copy full SHA for 796fb3e
Browse repository at this point
Add full stops
AA-Turner
committed
ecc9cfc
View commit details
Copy full SHA for ecc9cfc
Browse repository at this point
Further micro-optimisation suggested by Pieter Eendebak
AA-Turner
committed
311ac87
View commit details
Copy full SHA for 311ac87
Browse repository at this point
Remove early-exit check for whitespace-only input, as suggested by Pieter Eendebak
AA-Turner
committed
f2050ae
View commit details
Copy full SHA for f2050ae
Browse repository at this point
Commits on Mar 31, 2025
More test updates
AA-Turner
committed
1f73bcb
View commit details
Copy full SHA for 1f73bcb
Browse repository at this point
Update NEWS
AA-Turner
committed
cc67165
View commit details
Copy full SHA for cc67165
Browse repository at this point
Update NEWS
AA-Turner
committed
bf58dfa
View commit details
Copy full SHA for bf58dfa
Browse repository at this point
You can’t perform that action at this time.