Martin v. Löwis" wrote: > Are you implying that the search is faster for a tuple if the set is > small?
That was my intuition but the measurements say otherwise. ;) Even for sets as small as two or three elements, searches in frozensets are faster than within tuples. See my tuple vs. frozenset timeit results and Guido's confirmation in a parallel thread. John _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com