PyDocs

Nav

Text Processing Services

SequenceMatcher.quick_ratio

  • SequenceMatcher.quick_ratio()
Return an upper bound on ratio() relatively quickly.

This isn't defined beyond that it is an upper bound on .ratio(), and
is faster to compute.
1 Example
>>> s = SequenceMatcher(None, "abcd", "bcde")
>>> s.ratio()
0.75
>>> s.quick_ratio()
0.75
>>> s.real_quick_ratio()
1.0
from the Python docs
See Also
No see-alsos for difflib/SequenceMatcher.quick_ratio
0 Notes
No notes for SequenceMatcher.quick_ratio