MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_seqs

Method set_seqs

Lib/difflib.py:184–194  ·  view source on GitHub ↗

Set the two sequences to be compared. >>> s = SequenceMatcher() >>> s.set_seqs("abcd", "bcde") >>> s.ratio() 0.75

(self, a, b)

Source from the content-addressed store, hash-verified

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.

Callers 2

__init__Method · 0.95
_fancy_replaceMethod · 0.95

Calls 2

set_seq1Method · 0.95
set_seq2Method · 0.95

Tested by

no test coverage detected