Filipe Laíns [2020-04-16 22:58:47 +0100] > On Sun, 2020-04-12 at 18:55 +0200, Frédéric Mangano-Tarumi wrote: > > + assert parts.path in ("", "/") > > Why a tuple?
In Python, tuples are essentially immutable lists, and I think it’s a good practice to use immutable structures when they fit. It makes the intention clear and occasionally leads to significant optimizations.