[Python-ideas] Respectively and its unpacking sentence
Stephen J. Turnbull
stephen at xemacs.org
Fri Jan 29 12:32:10 EST 2016
Pavol Lisy writes:
> I would really like
>
> (a;b;c) in L
Not well-specified (does order matter? how about repeated values? is
(a;b;c) an object? it sure looks like one, and if so, object in L
already has a meaning). But for one obvious interpretation:
{a, b, c} <= set(L)
and in this interpretation you should probably optimize to
{a, b, c} <= L
by constructing L as a set in the first place. Really this thread
probably belongs on python-list anyway.
More information about the Python-ideas
mailing list