[Python-ideas] iterable.__unpack__ method

MRAB python at mrabarnett.plus.com
Sun Feb 24 04:01:45 CET 2013


On 2013-02-24 00:53, Terry Reedy wrote:
[snip]
> If ,* is not acceptible, how about ,** or ,... or ,None or <take your
> pick>. I rather like 'a, b, c, ... =' as it clearly implies that we are
> picking and naming the first three values from 3 or more; '...' clearly
> cannot be an assignment target.
>
[snip]
,** reminds me too much of dict packing/unpacking. -1

,None looks odd because it looks like you're binding to None. -1

,... looks good to me. +1




More information about the Python-ideas mailing list