8000 gh-130167: Optimise ``textwrap.dedent()`` by AA-Turner · Pull Request #131919 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-130167: Optimise textwrap.dedent() #131919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 31, 2025
Prev Previous commit
Next Next commit
Update NEWS
  • Loading branch information
AA-Turner committed Mar 31, 2025
commit cc67165718b620e86c06a7a1aa516234d89f4dad
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Improved performance of :func:`textwrap.dedent` by ~2.4x.
Improved performance of :func:`textwrap.dedent` by ~2.4x,
and fixed a bug where blank lines with whitespace characters other than space
or horizontal tab were not normalised to the newline.
Patch by Adam Turner and Marius Juston.
Loading
0