Method: difflib.SequenceMatcher.set_seqs
Calls: 252, Exceptions: 0, Paths: 1Back
Path 1: 252 calls (1.0)
'' (105) ' 1. Beautiful is beTTer than ugly.' (18) ' 3. Simple is better than complex.' (18) ['hello', 'andr\udce9'] (12) ['\udca3odz is a city in...
'' (105) ' 1. Beautiful is better than ugly.' (17) ' 3. Simple is better than complex.' (17) ['hello', 'andr\udce9'] (6) ['hello', 'andr\udcc3\u...
1def set_seqs(self, a, b):
2 """Set the two sequences to be compared.
3
4 >>> s = SequenceMatcher()
5 >>> s.set_seqs("abcd", "bcde")
6 >>> s.ratio()
7 0.75
8 """
9
10 self.set_seq1(a)
11 self.set_seq2(b)