Message254882
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. |
|
| Date |
User |
Action |
Args |
| 2015-11-19 07:57:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, martin.panter |
| 2015-11-19 07:57:07 | serhiy.storchaka | set | messageid: <1447919827.84.0.976832879983.issue25663@psf.upfronthosting.co.za> |
| 2015-11-19 07:57:07 | serhiy.storchaka | link | issue25663 messages |
| 2015-11-19 07:57:07 | serhiy.storchaka | create | |
|