timeit.timeit('a,b = foo', setup='foo = frozenset(range(2))', number=100000000)
timeit.timeit('a = next(iter(foo))', setup='foo = frozenset(range(2))',
    number=100000000)
How to get an arbitrary element from a frozenset?