Style question on recursive generators
d+pylist at nospamplease.trit.org
Tue Oct 19 03:23:37 CEST 2004
Alex Martelli <aleaxit at yahoo.com> wrote:
> If the issue is strictly one of whether it's worth somehow making
> for x in y: yield x
> terser (by a new kw, combination of kw, and/or punctuation) I guess we
> can discuss that (I just don't see the gain to offset the price of
> introducing new syntax and one more language thing to learn for
> Pythonistas and newcomers to Python).
I find myself writing a lot of recursive generators, and a while ago I
for x in other:
No new keywords, and the asterisk is already used for a similar
purpose (iterator expansion) in the function call syntax.
Thoughts? "Neat!" or "Yuck!"?
More information about the Python-list