On Tue, Jun 21, 2011 at 03:02:57PM -0400, Terry Reedy wrote:
> On 6/21/2011 9:43 AM, Antoon Pardon wrote:
>
> > matcher = SequenceMatcher(ls1, ls2)
> ...
> >What am I doing wrong?
>
> Read the doc, in particular, the really stupid signature of the class:
>
> "class difflib.SequenceMatcher(isju
On 6/21/2011 9:43 AM, Antoon Pardon wrote:
matcher = SequenceMatcher(ls1, ls2)
...
What am I doing wrong?
Read the doc, in particular, the really stupid signature of the class:
"class difflib.SequenceMatcher(isjunk=None, a='', b='', autojunk=True)"
You are passing isjunk = ls1, a = ls2,
I have the following code I wrote.
==
from difflib import SequenceMatcher
import sys
write = sys.stdout.write
warn = sys.stderr.write
def program(argv):
ls1 = open(argv[1]).readlines()
ls2 = open(argv[2]).readlines()
matcher = SequenceMatcher(l