MCPcopy Index your code
hub / github.com/python/cpython / set_seqs

Method set_seqs

Lib/difflib.py:185–195  ·  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

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.

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