Skip to content Skip to sidebar Skip to footer
Showing posts with the label Unpack

Why Is `{*l}` Faster Than `set(l)` - Python Sets (not Really Only For Sets, For All Sequences)

So here is my timings: >>> import timeit >>> timeit.timeit(lambda: set(l)) 0.7210… Read more Why Is `{*l}` Faster Than `set(l)` - Python Sets (not Really Only For Sets, For All Sequences)