Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

difflib.SequenceMatcher.find_longest_match return wrong result #134116

Closed
Labels
pendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@unisgn

Description

@unisgn

Bug report

Bug description:

Python 3.13.3 (main, Apr 9 2025, 07:44:25) [GCC 14.2.1 20250207]

importdifflibs1='TZiSLutKO5xRiAkkw1ZGkpZsq4's2='hTkmKeyY0WYoEqn7xD6jDRwRU4quqozyh8WFwkYY82h9wVv93iUzijw4Q8JYh4l496RD20dsTmy1T0Tl5D1sLRetaW2PP75f9fLeSCllRmISdDFLb3QazkubtOAjZ95a5Ril7NdVIX8hJWlJgwmhd7FGlO5aQQQbLeQcSEFqmiDZOnBWoAisj9YeKHiihm2QzAsdZAN78CO8tXEHfKjCOoZWQo513tEJ4b26BRItK'm=difflib.SequenceMatcher(None,s1,s2).find_longest_match(ahi=len(s1),bhi=len(s2))asserts1.find('tK')==6assertlen(s2)==233asserts2.find('tK')==231assertm==difflib.Match(3,100,1)

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp