Re: Yielding a chain of values



Reinhold Birkenfeld wrote:

> > x = [ yield r for r in iterable ]
>
> Which is quite different from
>
> x = (yield) in iterable
>
> which is currently (PEP 342) equivalent to
>
> _ = (yield)
> x = _ in iterable
>
> So, no further tinkering with yield, I'm afraid.
>
> Reinhold

Is the statement

yield from iterable

also in danger to be ambigous?

The resolution of "(yield) from iterable" into

_ = (yield)
x = _ from iterable

would not result in valid Python syntax.

Kay

.



Relevant Pages

  • Re: Yielding a chain of values
    ... > Kay Schluehr wrote: ... >> Reinhold Birkenfeld wrote: ... >>> So, no further tinkering with yield, I'm afraid. ... >> would not result in valid Python syntax. ...
    (comp.lang.python)
  • Re: Yielding a chain of values
    ... > Reinhold Birkenfeld wrote: ... >> So, no further tinkering with yield, I'm afraid. ... > would not result in valid Python syntax. ...
    (comp.lang.python)
  • Re: macros
    ... and concatenating `)' and `2' ... does not yield a pp-token. ... Stan Tobias ... Prev by Date: ...
    (comp.lang.c)
  • Re: Is killing GG posts wise/fair?
    ... I yield to pedestrians. ... End Of The Good GG Archive GUI: http://blinkynet.net/comp/gggui.html ... Prev by Date: ...
    (news.software.readers)
  • Re: Chopins Nocturne in Eb Major
    ... >I see Chopin's Nocturne in Eb Major is written in 12/8. ... >It appears the only difference is that 3/4 would yield more measures. ... Brights have a naturalistic world-view. ... Prev by Date: ...
    (rec.music.compose)