[Python-ideas] Revised**12 PEP on Yield-From
greg.ewing at canterbury.ac.nz
Thu Apr 23 02:53:02 CEST 2009
Erik Groeneveld wrote:
> the readRe generator must be able to
> indicate that it has superfluous data, and this data must be processed
> by other generators.
> Have you though about this? How would you solve it?
I think you're expecting a bit much from yield-from.
In a situation like this, I wouldn't use yield to
receive the values. I'd read them from some kind of
buffering object that allows peeking ahead however
far is needed.
More information about the Python-ideas