[Python-ideas] Revised**12 PEP on Yield-From
jh at improva.dk
Sun Apr 19 19:44:50 CEST 2009
Mathias Panzenböck wrote:
> Jacob Holm wrote:
> > Scott David Daniels wrote:
> >> Now that we passed the magic three or four threshold, is
> >> it not easier to read if we pick some better names?
> >> _iter = iter(EXPR)
> >> _call, _arg = next, _iter
> And I guess there is a missing "next = _iter.next" before this line?
Nope. In 2.6 and 3.0, next is a global function:
Return the next item from the iterator. If default is given and the
iterator is exhausted, it is returned instead of raising StopIteration.
More information about the Python-ideas