Skip to content

gh-145209: Composability of difflib - #145210

Closed
dg-pb wants to merge 18 commits into
python:mainfrom
dg-pb:composable_difflib
Closed

dg-pb wants to merge 18 commits into
python:mainfrom
dg-pb:composable_difflib

Conversation

@dg-pb

@dg-pb dg-pb commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor
@dg-pb
dg-pb requested a review from AA-Turner as a code owner March 6, 2026 03:30
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 7, 2026
Comment thread Doc/library/difflib.rst
>>> get_close_matches('accept', keyword.kwlist)
['except']

.. versionchanged:: 3.15

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update for 3.16, and use next.

@dg-pb

dg-pb commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

So I have restructured difflib here and prepared the ground for modularity - this would have solved most of the issues with functionality and paved the way for further algorithmic improvements and extensions.

Unfortunately, I see that by now there are many conflicts and people have gone on a different path. 2 things.

  1. Major. With this PR, change that has been done in gh-118150: difflib: expose autojunk flag from SequenceMatcher to public methods and functions #153959 would not have been necessary. This PR has strengthened difflib's coupling with single matcher, which is in completely opposite direction to what I was doing here.
  2. Minor. This gh-154661: Reorganize difflib documentation #154662 has restructured documentation and now it conflicts with pretty much all of restructuring that I have done here.

@encukou, what now? I am happy to retract my efforts here all together.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Oct 27, 2026
@dg-pb dg-pb closed this Oct 29, 2026
@dg-pb
dg-pb deleted the composable_difflib branch November 1, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants