can Python be useful as functional?

Bryan Olson fakeaddress at
Wed Sep 19 06:08:23 CEST 2007

Rustom Mody asked:
> [...] why does
> (yield(x) for x in si(l) if x % p != 0)
> not work? I would have expected generator expression to play better
> with generators.

You have a statement, "yield(x)", where the construct requires
an expression.


More information about the Python-list mailing list