[Python-ideas] Generator unpacking

Sven R. Kunze srkunze at mail.de
Mon Feb 15 12:53:45 EST 2016


On 15.02.2016 18:39, Ethan Furman wrote:
> I /think/ I've used that trick to confirm an iterable was empty; I 
> /know/ I've used
>
> [some_var] = some_var

Is that an unknown Python idiom?

It looks short but still insane.

Best,
Sven


More information about the Python-ideas mailing list