MCPcopy
hub / github.com/rapidfuzz/RapidFuzz / as_list

Method as_list

src/rapidfuzz/distance/_initialize_py.py:324–330  ·  view source on GitHub ↗

Convert Editops to a list of tuples. This is the equivalent of ``[x for x in editops]``

(self)

Source from the content-addressed store, hash-verified

322 return blocks
323
324 def as_list(self):
325 """
326 Convert Editops to a list of tuples.
327
328 This is the equivalent of ``[x for x in editops]``
329 """
330 return [tuple(op) for op in self._editops]
331
332 def copy(self):
333 """

Callers 13

test_editops_emptyFunction · 0.95
test_EditopsFunction · 0.45
test_OpcodesFunction · 0.45
test_EditopsFunction · 0.45
hamming_editopsFunction · 0.45
test_EditopsFunction · 0.45
test_EditopsFunction · 0.45
test_editops_get_sliceFunction · 0.45
del_testFunction · 0.45
test_editops_inversionFunction · 0.45
test_opcode_inversionFunction · 0.45
test_list_initializationFunction · 0.45

Calls

no outgoing calls

Tested by 13

test_editops_emptyFunction · 0.76
test_EditopsFunction · 0.36
test_OpcodesFunction · 0.36
test_EditopsFunction · 0.36
hamming_editopsFunction · 0.36
test_EditopsFunction · 0.36
test_EditopsFunction · 0.36
test_editops_get_sliceFunction · 0.36
del_testFunction · 0.36
test_editops_inversionFunction · 0.36
test_opcode_inversionFunction · 0.36
test_list_initializationFunction · 0.36