Re: Don't understand SequenceMatcher from difflib

2011-06-22 Thread Antoon Pardon
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

Re: Don't understand SequenceMatcher from difflib

2011-06-21 Thread Terry Reedy
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,