Serhiy Storchaka added the comment:
Nice work.
An alternative approach is to make "matches" a dict. And instead of
if match not in seen:
seen.add(word)
matches.append(match)
use just
matches[word] = match
I don't know what approach is better.
Added other minor comments on Rietveld.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25663>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com