That should have been: >>> sets.sort(key=len) >>> reduce(set.intersection, sets)
The only refinement was the pre-sort based on set length. -- http://mail.python.org/mailman/listinfo/python-list
That should have been: >>> sets.sort(key=len) >>> reduce(set.intersection, sets)
The only refinement was the pre-sort based on set length. -- http://mail.python.org/mailman/listinfo/python-list