PyDocs

Nav

Text Processing Services

SequenceMatcher.real_quick_ratio

  • SequenceMatcher.real_quick_ratio()
Return an upper bound on ratio() very quickly.

This isn't defined beyond that it is an upper bound on .ratio(), and
is faster to compute than either .ratio() or .quick_ratio().
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.real_quick_ratio
0 Notes
No notes for SequenceMatcher.real_quick_ratio