Skip to content

Composability of difflib #145209

Closed as not planned
Closed as not planned

Description

@dg-pb

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 do all the nice things that difflib enables.

Given the current state of affairs, I don't think there were many ways to do it.
And in terms of nature of arguments provided to different functions, I only saw one.

Very much open to any suggestions / concerns.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/algorithmic-complexity-of-difflib/105844/98

Linked PRs

Activity

  1. added
    type-feature
    on Feb 25, 2026
  2. added
    stdlib
    docs
    and removed
    stdlib
    on Feb 25, 2026
  3. added
    stdlib
    and removed
    docs
    on Feb 25, 2026
  4. dg-pb commented on Oct 29, 2026

    @dg-pb
    ContributorAuthor

    main has branched out from this path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions