Title: Composability of `difflib` · Issue #145209 · python/cpython · GitHub
Open Graph Title: Composability of `difflib` · Issue #145209 · python/cpython
X Title: Composability of `difflib` · Issue #145209 · python/cpython
Description: Feature or enhancement Proposal: I closed #144132 in favour to more gradual divide and conquer approach. And this is the first part, which I think is the most valuable one. It enables user to implement his own Matcher and Differ types to...
Open Graph Description: Feature or enhancement Proposal: I closed #144132 in favour to more gradual divide and conquer approach. And this is the first part, which I think is the most valuable one. It enables user to imple...
X Description: Feature or enhancement Proposal: I closed #144132 in favour to more gradual divide and conquer approach. And this is the first part, which I think is the most valuable one. It enables user to imple...
Opengraph URL: https://github.com/python/cpython/issues/145209
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Composability of `difflib`","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nI closed https://github.com/python/cpython/issues/144132 in favour to more gradual divide and conquer approach.\n\nAnd this is the first part, which I think is the most valuable one.\nIt enables user to implement his own `Matcher` and `Differ` types to do all the nice things that `difflib` enables.\n\nGiven the current state of affairs, I don't think there were many ways to do it.\nAnd in terms of nature of arguments provided to different functions, I only saw one.\n\nVery much open to any suggestions / concerns.\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on Discourse\n\n### Links to previous discussion of this feature:\n\nhttps://discuss.python.org/t/algorithmic-complexity-of-difflib/105844/98\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-145210\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/dg-pb","@type":"Person","name":"dg-pb"},"datePublished":"2026-02-25T12:24:15Z","url":"https://github.com/python/cpython/issues/145209"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d3c49ce-2b89-0be5-9f0e-ab8ac703710b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9588:313081:20AD3F2:2AEE0EE:6B023678 |
| html-safe-nonce | 7f5f2bb554e25190b74efe07357183c6769dba60757f9b77a29efe1ecaaf6078 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTg4OjMxMzA4MToyMEFEM0YyOjJBRUUwRUU6NkIwMjM2NzgiLCJ2aXNpdG9yX2lkIjoiMzgxMjQ2MTc1NTQxMDU2MDYzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3330fb20a5bf2385cd298ec3645f92503b49ff56e9dfa1b112f596a5af61e10 |
| hovercard-subject-tag | issue:3989168001 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/145209/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c373ab2a6e27d2eb8e884e91e46fcb3082b3f5822617719305f75f4f2e401b2/python/cpython/issues/145209 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c373ab2a6e27d2eb8e884e91e46fcb3082b3f5822617719305f75f4f2e401b2/python/cpython/issues/145209 |
| og:image:alt | Feature or enhancement Proposal: I closed #144132 in favour to more gradual divide and conquer approach. And this is the first part, which I think is the most valuable one. It enables user to imple... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dg-pb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width