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