[Python-ideas] x=(yield from) confusion [was:Yet another alternative name for yield-from]
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Apr 10 03:11:55 CEST 2009
Jim Jewett wrote:
> That does suggest that yield-from *should* accept pre-started
> generators, if only because the previous line (or a decorator) may
> have primed it.
If the previous line has primed it, then it's not a
fresh iterator, so all bets are off.
Same if a decorator has primed it in such a way that
it doesn't behave like a fresh iterator.
--
Greg
More information about the Python-ideas
mailing list