📝 dinglehopper: Document seq_editops()

pull/29/head
Gerber, Mike 5 years ago
parent 5ccdace1dd
commit 82e863fac2

@ -81,6 +81,12 @@ def distance(s1, s2):
def seq_editops(seq1, seq2):
"""
Return sequence of edit operations transforming one sequence to another.
This aims to return the same/similar results as python-Levenshtein's editops(), just generalized to arbitrary
sequences.
"""
seq1 = list(seq1)
seq2 = list(seq2)
m = len(seq1)

Loading…
Cancel
Save