GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-118150: warn in doc about results asymmetry for difflib junk by Lenormju · Pull Request #153892 · python/cpython

Conversation

@Lenormju

@Lenormju Lenormju commented Jul 18, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Issue: Difflib creates unreasonably large diffs #118150

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Lenormju
docs: warn about results asymmetry for difflib junk
f6e54c2
@python-cla-bot

python-cla-bot Bot commented Jul 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot added the docs Documentation in the Doc dir label Jul 18, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Jul 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jul 18, 2026
@bedevere-app bedevere-app Bot added the awaiting review label Jul 18, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Jul 18, 2026
Difflib creates unreasonably large diffs #118150
Closed
@read-the-docs-community

read-the-docs-community Bot commented Jul 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33647276 | 📁 Comparing 0793740 against main (cffcee4)

  🔍 Preview build  

16 files changed · ± 16 modified

± Modified

  • c-api/frame.html
  • c-api/veryhigh.html
  • library/allos.html
  • library/calendar.html
  • library/concurrent.interpreters.html
  • library/ctypes.html
  • library/difflib.html
  • library/filecmp.html
  • library/functions.html
  • library/inspect.html
  • and 6 more...
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou encukou added the sprint label Jul 18, 2026
@github-project-automation github-project-automation Bot added this to Sprint Jul 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Sprint Jul 18, 2026
@encukou encukou self-assigned this Jul 18, 2026
encukou
encukou reviewed Jul 18, 2026
View reviewed changes
Comment thread Doc/library/difflib.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Doc/library/difflib.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Doc/library/difflib.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 18, 2026
gh-118150: expose autojunk SequenceMathcher flag to public methods/functions of difflib #153947
Closed
gh-118150: difflib: expose autojunk flag from SequenceMatcher to public methods and functions #153959
Merged
Lenormju added 3 commits July 18, 2026 17:13
@Lenormju
merge and reword the whole junk mechanism
39e47c3
@Lenormju
remove all notes, keep only junk explanation at the top
1d9605e
@Lenormju
update NEWS to the current content of the PR
0793740
encukou
encukou reviewed Jul 19, 2026
View reviewed changes
Comment thread Doc/library/difflib.rst
Comment on lines 22 to 25
.. class:: SequenceMatcher
:noindex:

This is a flexible class for comparing pairs of sequences of any type, so long

@encukou encukou Jul 19, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

What do you think about making this an introduction to the difflib module, rather than docs for the SequenceMatcher class (which is documented properly below)?

Something like this, plus dedenting it:

All functionality in this module uses the algorithm implemented in
:class:`SequenceMatcher`, a flexible class for comparing pairs
of sequences of any type, so long […]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Lenormju Lenormju Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I agree, because in the end everything relies on it. But can we do that in another PR, iteratively ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@encukou encukou Jul 24, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

OK. I'll send the PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@encukou encukou Jul 24, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Sent: #154662

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@encukou encukou added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Jul 24, 2026
@encukou
encukou merged commit 59e67c2 into python:main Jul 24, 2026
36 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 24, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sprint Jul 24, 2026
@miss-islington-app

miss-islington-app Bot commented Jul 24, 2026

Copy link
Copy Markdown

Thanks @Lenormju for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting review label Jul 24, 2026
@bedevere-app

bedevere-app Bot commented Jul 24, 2026

Copy link
Copy Markdown

GH-154658 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jul 24, 2026
@bedevere-app

bedevere-app Bot commented Jul 24, 2026

Copy link
Copy Markdown

GH-154659 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 24, 2026
@bedevere-app

bedevere-app Bot commented Jul 24, 2026

Copy link
Copy Markdown

GH-154660 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jul 24, 2026
encukou pushed a commit that referenced this pull request Jul 24, 2026
@miss-islington @Lenormju
[3.15] gh-118150: warn in doc about results asymmetry for difflib junk (
1f53f91
GH-153892) (GH-154658)

(cherry picked from commit 59e67c2)

Co-authored-by: Lenormand Julien <[email protected]>
encukou pushed a commit that referenced this pull request Jul 24, 2026
@miss-islington @Lenormju
[3.14] gh-118150: warn in doc about results asymmetry for difflib junk (
a73668a
GH-153892) (GH-154659)

(cherry picked from commit 59e67c2)

Co-authored-by: Lenormand Julien <[email protected]>
encukou pushed a commit that referenced this pull request Jul 24, 2026
@miss-islington @Lenormju
[3.13] gh-118150: warn in doc about results asymmetry for difflib junk (
970a738
GH-153892) (GH-154660)

(cherry picked from commit 59e67c2)

Co-authored-by: Lenormand Julien <[email protected]>
@Lenormju
Lenormju deleted the gh-118150-difflib-autojunk-asymmetry-doc branch August 11, 2026 11:04
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
@Lenormju @mbeijen
pythongh-118150: warn in doc about results asymmetry for difflib junk (…
d0efede
…pythonGH-153892)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@encukou encukou encukou left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@encukou encukou

Labels

docs Documentation in the Doc dir sprint

Projects

Docs PRs
Status: Done
Sprint
Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Lenormju @encukou
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.