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 ggenellina
Recipients LambertDW, eli.bendersky, ggenellina
Date 2008-12-10.19:38:25
SpamBayes Score 1.3348601e-07
Marked as misclassified No
Message-id <1228937908.09.0.634076919942.issue4622@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.3.4 and later have this bug. But release 2.1.3 doesn't:

Python 2.1.3 (#35, Apr  8 2002, 17:47:50) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import difflib
>>> difflib.SequenceMatcher(None, [4] + [5] * 500, [5] * 500).ratio()
0.99900099900099903
>>> difflib.SequenceMatcher(None, [4] + [5] * 200, [5] * 200).ratio()
0.99750623441396513
>>> difflib.SequenceMatcher(None, [4] + [5] * 100, [5] * 100).ratio()
0.99502487562189057

I don't have any 2.2 release to test right now.
History
Date User Action Args
2008-12-10 19:38:28ggenellinasetrecipients: + ggenellina, LambertDW, eli.bendersky
2008-12-10 19:38:28ggenellinasetmessageid: <1228937908.09.0.634076919942.issue4622@psf.upfronthosting.co.za>
2008-12-10 19:38:27ggenellinalinkissue4622 messages
2008-12-10 19:38:26ggenellinacreate