James Stroud wrote: > Would anyone else find this syntax useful for generator expressions? > > py> [x for x in '1234' if x%2 else 'even'] > [1, 'even', 3, 'even'] > > I'm guessing this has been suggested before? > > James Before anyone notices, I should say: [x for x in [1,2,3,4] if x%2 else 'even'] Darn'ed imaginary interpreters!