Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong result for difflib.SequenceMatcher #79468

Closed
BorisYang mannequin opened this issue Nov 21, 2018 · 1 comment
Closed

wrong result for difflib.SequenceMatcher #79468

BorisYang mannequin opened this issue Nov 21, 2018 · 1 comment
Labels
3.7 (EOL) end of life type-bug An unexpected behavior, bug, or error

Comments

@BorisYang
Copy link
Mannequin

BorisYang mannequin commented Nov 21, 2018

BPO 35287

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2018-11-21.07:16:49.955>
created_at = <Date 2018-11-21.07:13:26.940>
labels = ['type-bug', '3.7']
title = 'wrong result for difflib.SequenceMatcher'
updated_at = <Date 2018-11-21.07:16:49.954>
user = 'https://bugs.python.org/BorisYang'

bugs.python.org fields:

activity = <Date 2018-11-21.07:16:49.954>
actor = 'Boris Yang'
assignee = 'none'
closed = True
closed_date = <Date 2018-11-21.07:16:49.955>
closer = 'Boris Yang'
components = []
creation = <Date 2018-11-21.07:13:26.940>
creator = 'Boris Yang'
dependencies = []
files = []
hgrepos = []
issue_num = 35287
keywords = []
message_count = 1.0
messages = ['330173']
nosy_count = 1.0
nosy_names = ['Boris Yang']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue35287'
versions = ['Python 3.7']

@BorisYang
Copy link
Mannequin Author

BorisYang mannequin commented Nov 21, 2018

How to repeat:

from difflib import SequenceMatcher
seqMatcher = SequenceMatcher(None, "德阳孩子", "孩子德阳")
seqMatcher.get_matching_blocks()

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)]

@BorisYang BorisYang mannequin added 3.7 (EOL) end of life type-bug An unexpected behavior, bug, or error labels Nov 21, 2018
@BorisYang BorisYang mannequin closed this as completed Nov 21, 2018
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

0 participants