[Python-ideas] Catching the return value of a generator at the end of a for loop

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 16 21:11:02 EDT 2019

Jan Kaliszewski wrote:
> I like the idea -- occasionally (when dealing with `yield
> from`-intensive code...) I wish such a shortcut existed.

Can you give a concrete example of a use case?


More information about the Python-ideas mailing list