[John Barham] > But getting back to the original issue, what does using > frozensets gain you over using a tuple: > > if urlext in ('html', 'xml', 'php'): With sets, the search is O(1). With tuples, it is O(n). Sets win on inputs longer than 1. Raymond