A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/101954.html below:

[Python-Dev] Issue 2986: difflib.SequenceMatcher is partly broken

[Python-Dev] Issue 2986: difflib.SequenceMatcher is partly broken [Python-Dev] Issue 2986: difflib.SequenceMatcher is partly brokenNick Coghlan ncoghlan at gmail.com
Thu Jul 15 01:19:20 CEST 2010
On Thu, Jul 15, 2010 at 6:40 AM, Tim Peters <tim.peters at gmail.com> wrote:
> The call in question here is the constructor (__init__), so there's no
> real difference between "on the object" and "per call" in this case.

You're right, I was misremembering how SequenceMatcher works.

Terry's summary of the situation seems correct to me - adding a new
flag to the constructor signature would mean we're taking a silent
failure ("the heuristic makes my code give the wrong answer on 2.7.0")
and making it a noisy failure ("my code needs to be able to turn the
heuristic off to get the right answer, so it will fail noisily on
2.7.0").

That's a far cry from the True/False mistake.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4