yield_all needed in Python

Douglas Alan nessus at mit.edu
Tue Mar 1 18:14:27 CET 2005

"Terry Reedy" <tjreedy at udel.edu> writes:

> Cetainly, if <yield_all
> iterator> == <for i in iterator: yield i>, I don't see how anything
> is gained except for a few keystrokes.

What's gained is making one's code more readable and maintainable,
which is the one of the primary reasons that I use Python.


More information about the Python-list mailing list