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
Events
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.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
difflib.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 7, 2026
gh-156505: Speed up difflib.HtmlDiff for lopsided replacements (GH-156506)
felix314159
authored
1f25c33
View commit details
Copy full SHA for 1f25c33
View code at this point
Browse repository at this point
Commits on Sep 4, 2026
gh-118150: difflib: expose autojunk flag from SequenceMatcher to public methods and functions (GH-153959)
faithlesstomas
authored
bc977f4
View commit details
Copy full SHA for bc977f4
View code at this point
Browse repository at this point
Commits on Jul 18, 2026
gh-71896: Add a docs warning about trailing newlines ignored by `difflib.HtmlDiff` (GH-153930)
Lenormju
authored
755d971
View commit details
Copy full SHA for 755d971
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 6, 2026
gh-144384: Lazily import `_colorize` (#149318)
hugovk
authored
7cea70e
View commit details
Copy full SHA for 7cea70e
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 Feb 23, 2026
gh-145131: difflib.Differ._fancy_replace performance (re-use ratio) (#145133)
Show description for 79f6caf
dg-pb
authored
79f6caf
View commit details
Copy full SHA for 79f6caf
View code at this point
Browse repository at this point
Commits on Dec 30, 2025
gh-142939: difflib.get_close_matches performance (#142940)
dg-pb
authored
23ad9c5
View commit details
Copy full SHA for 23ad9c5
View code at this point
Browse repository at this point
Commits on Sep 22, 2025
gh-95953: Add a css class to changed lines of difflib.HtmlDiff make_table (#139226)
KatieLG
authored
e642a24
View commit details
Copy full SHA for e642a24
View code at this point
Browse repository at this point
Commits on Aug 8, 2025
gh-133722: Add Difflib theme to `_colorize` and 'color' option to `difflib.unified_diff` (#133725)
dougthor42
authored
34d7351
View commit details
Copy full SHA for 34d7351
View code at this point
Browse repository at this point
Commits on Jun 27, 2025
gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908)
Show description for f3aec60
skirpichev
and
vstinner
authored
f3aec60
View commit details
Copy full SHA for f3aec60
View code at this point
Browse repository at this point
Commits on May 28, 2025
gh-134580: Modernizing `difflib.HtmlDiff` for HTML Output (#134581)
Show description for 7ca6d79
Wulian233
and
hugovk
authored
7ca6d79
View commit details
Copy full SHA for 7ca6d79
View code at this point
Browse repository at this point
Commits on May 1, 2025
gh-130167: Improve ``difflib.IS_LINE_JUNK`` performance by using string methods (#130170)
Show description for bce45bc
5 people
authored
bce45bc
View commit details
Copy full SHA for bce45bc
View code at this point
Browse repository at this point
Commits on Mar 14, 2025
gh-131204: Fix `difflib.HtmlDiff` may not use monospaced font (#131221)
Show description for 7fd6160
3 people
authored
7fd6160
View commit details
Copy full SHA for 7fd6160
View code at this point
Browse repository at this point
Commits on Mar 13, 2025
gh-93096: Remove CLI interface for `difflib` (#131099)
donbarbos
authored
3a189af
View commit details
Copy full SHA for 3a189af
View code at this point
Browse repository at this point
Commits on Feb 11, 2025
gh-129939: Add darkmode support for difflib's comparison pages (#129940)
Wulian233
authored
12bd15f
View commit details
Copy full SHA for 12bd15f
View code at this point
Browse repository at this point
Commits on Jun 10, 2024
gh-115801: Only allow sequence of strings as input for difflib.unified_diff (GH-118333)
eendebakpt
authored
c3b6dbf
View commit details
Copy full SHA for c3b6dbf
View code at this point
Browse repository at this point
Commits on May 25, 2024
gh-119105: Differ.compare is too slow [for degenerate cases] (#119492)
Show description for de19694
tim-one
authored
de19694
View commit details
Copy full SHA for de19694
View code at this point
Browse repository at this point
Commits on May 22, 2024
gh-119105: difflib.py Differ.compare is too slow [for degenerate cases] (#119376)
Show description for 07df93d
tim-one
authored
07df93d
View commit details
Copy full SHA for 07df93d
View code at this point
Browse repository at this point
Commits on May 19, 2024
gh-119105: difflib: improve recursion for degenerate cases (#119131)
Show description for 0abf997
pulkin
and
tim-one
authored
0abf997
View commit details
Copy full SHA for 0abf997
View code at this point
Browse repository at this point
Commits on Apr 27, 2022
Correct method name typo (#91970)
supakeen
authored
c6b84a7
View commit details
Copy full SHA for c6b84a7
View code at this point
Browse repository at this point
Commits on Oct 6, 2021
Fix typos in the Lib directory (GH-28775)
Show description for 745c9d9
cclauss
and
terryjreedy
authored
745c9d9
View commit details
Copy full SHA for 745c9d9
View code at this point
Browse repository at this point
Commits on Sep 21, 2021
bpo-45216: Remove extraneous method docs from `difflib` (GH-28445)
sobolevn
authored
06e1773
View commit details
Copy full SHA for 06e1773
View code at this point
Browse repository at this point
Commits on Apr 30, 2020
bpo-40394 - difflib.SequenceMatched.find_longest_match default args (GH-19742)
Show description for 3209cbd
lrjball
authored
3209cbd
View commit details
Copy full SHA for 3209cbd
View code at this point
Browse repository at this point
Commits on Apr 10, 2020
bpo-39481: PEP 585 for difflib, filecmp, fileinput (#19422)
emmatyping
authored
e3ec44d
View commit details
Copy full SHA for e3ec44d
View code at this point
Browse repository at this point
Commits on Nov 12, 2019
bpo-38738: Fix formatting of True and False. (GH-17083)
Show description for 138ccbb
serhiy-storchaka
authored
138ccbb
View commit details
Copy full SHA for 138ccbb
View code at this point
Browse repository at this point
Commits on Aug 21, 2019
Fix difflib `?` hint in diff output when dealing with tabs (#15201)
asottile
authored and
tim-one
committed
e1c638d
View commit details
Copy full SHA for e1c638d
View code at this point
Browse repository at this point
Commits on Jan 2, 2019
Revert "bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)" (GH-11356)
Show description for 830ddc7
serhiy-storchaka
authored
830ddc7
View commit details
Copy full SHA for 830ddc7
View code at this point
Browse repository at this point
Commits on Dec 29, 2018
bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)
tirkarthi
authored and
serhiy-storchaka
committed
78de011
View commit details
Copy full SHA for 78de011
View code at this point
Browse repository at this point
Commits on Apr 5, 2018
bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381)
rhettinger
authored
01b731f
View commit details
Copy full SHA for 01b731f
View code at this point
Browse repository at this point
Commits on Mar 4, 2018
bpo-32981: Fix catastrophic backtracking vulns (#5955)
Show description for 0e6c8ee
3 people
authored and
benjaminp
committed
0e6c8ee
View commit details
Copy full SHA for 0e6c8ee
View code at this point
Browse repository at this point
Commits on Apr 5, 2017
bpo-29762: More use "raise from None". (#569)
Show description for 5affd23
serhiy-storchaka
authored
5affd23
View commit details
Copy full SHA for 5affd23
View code at this point
Browse repository at this point
Commits on Sep 8, 2016
#27364: fix "incorrect" uses of escape character in the stdlib.
Show description for 44b548d
bitdancer
committed
44b548d
View commit details
Copy full SHA for 44b548d
View code at this point
Browse repository at this point
Commits on Nov 2, 2015
Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5
vadmium
committed
2eb819f
View commit details
Copy full SHA for 2eb819f
View code at this point
Browse repository at this point
Issue #25523: Correct "a" article to "an" article
Show description for 7462b64
vadmium
committed
7462b64
View commit details
Copy full SHA for 7462b64
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.
⌂ Proxy