[issue26904] Difflib quick_ratio() could use Counter()
Wolfgang Maier
report at bugs.python.org
Mon May 2 05:30:35 EDT 2016
Wolfgang Maier added the comment:
Given your comment about sum((fullacount & fullbcount).values()), why not use its in-place version:
fullacount &= fullbcount
matches = sum(fullacount.values())
?
----------
nosy: +wolma
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26904>
_______________________________________
More information about the Python-bugs-list
mailing list