yield_all needed in Python

Francis Girard francis.girard at free.fr
Wed Mar 2 22:42:23 CET 2005

Le mercredi 2 Mars 2005 21:32, Skip Montanaro a écrit :
> def f():
>     yield from (x for x in gen1(arg))
> Skip

This suggestion had been made in a previous posting and it has my preference :

def f():
    yield from gen1(arg)



More information about the Python-list mailing list