Greg Ewing wrote: > How about just leaving off the brackets? > > gen = yield x*x for x in stuff I think this has a dangling else problem: gen = yield x*x for x in yield y+y for y in stuff if x > y In this expression, how would you put parentheses, and why? Regards, Martin