Jan Danielsson: > ...completely avoiding the design issue I raised altogether. Thanks! > Exactly what I was hoping for! :-) Another common way to do it, it may be a little slower because that n,txt is a tuple: items = set(int(n) for n,txt in mylist) Bye, bearophile