Has anybody written a good powerset function for that nice new set datatype we now have? I've found a powerset operator for Python lists on the net, but that depends on lists being indexable which sets aren't. I suppose one answer is to iterate the set into a list, use the powerset I've got, then iterate the answer back int a set...