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.

Author tim.peters
Recipients nalza001, tim.peters
Date 2021-09-13.04:10:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631506247.79.0.0328727194167.issue45180@roundup.psfhosted.org>
In-reply-to
Content
Unfortunately, you're getting hurt by the "autojunk" feature (see the docs). If you turn it off, you'll get a result much more to your liking:

>>> print(SequenceMatcher(None, a, b).ratio())
0.3431803896920176

>>> print(SequenceMatcher(None, a, b, autojunk=False).ratio())
0.9553739786297926
History
Date User Action Args
2021-09-13 04:10:47tim.peterssetrecipients: + tim.peters, nalza001
2021-09-13 04:10:47tim.peterssetmessageid: <1631506247.79.0.0328727194167.issue45180@roundup.psfhosted.org>
2021-09-13 04:10:47tim.peterslinkissue45180 messages
2021-09-13 04:10:47tim.peterscreate