Set the two sequences to be compared. >>> s = SequenceMatcher() >>> s.set_seqs("abcd", "bcde") >>> s.ratio() 0.75
(self, a, b)
| 182 | self.set_seqs(a, b) |
| 183 | |
| 184 | def set_seqs(self, a, b): |
| 185 | """Set the two sequences to be compared. |
| 186 | |
| 187 | >>> s = SequenceMatcher() |
| 188 | >>> s.set_seqs("abcd", "bcde") |
| 189 | >>> s.ratio() |
| 190 | 0.75 |
| 191 | """ |
| 192 | |
| 193 | self.set_seq1(a) |
| 194 | self.set_seq2(b) |
| 195 | |
| 196 | def set_seq1(self, a): |
| 197 | """Set the first sequence to be compared. |
no test coverage detected