This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: wrong result for difflib.SequenceMatcher
Type: behavior Stage: resolved
Components: Versions: Python 3.7
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Boris Yang
Priority: normal Keywords:

Created on 2018-11-21 07:15 by Boris Yang, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (1)
msg330175 - (view) Author: (Boris Yang) Date: 2018-11-21 07:15
How to repeat:

# -*- coding: UTF-8 -*-
from difflib import SequenceMatcher
seqMatcher = SequenceMatcher(None, "德阳孩子", "孩子德阳")

Expect Result:
[Match(a=0, b=3, size=2), Match(a=2, b=0, size=2), Match(a=5, b=5, size=0)]

Current Result:
[Match(a=0, b=3, size=2), Match(a=5, b=5, size=0)]
Date User Action Args
2022-04-11 14:59:08adminsetgithub: 79470
2018-11-21 07:16:33Boris Yangsetstatus: open -> closed
stage: resolved
2018-11-21 07:15:29Boris Yangcreate