How to improve this code?

Tim Golden mail at timgolden.me.uk
Tue Sep 15 12:19:06 EDT 2009


Tim Golden wrote:
> Unless I'm missing something, (and I didn't bother to
> read the original code so I may be) that's a subset test:
> 
> set (searchList) <= set (searchList)

(cough) or, rather:

set (searchList) <= set (sourceList)

TJG



More information about the Python-list mailing list