yield_all needed in Python
Douglas Alan
nessus at mit.edu
Tue Mar 1 19:43:06 EST 2005
Steve Holden <steve at holdenweb.com> writes:
> Guido has generally observed a parsimony about the introduction of
> features such as the one you suggest into Python, and in particular
> he is reluctant to add new keywords - even in cases like decorators
> that cried out for a keyword rather than the ugly "@" syntax.
In this case, that is great, since I'd much prefer
yield *gen1(arg)
than
yield_all gen1(arg)
anyway, as someone else suggested in this thread (followed by a
demonic laugh). The only reason I mentioned "yield_all" is because
there was a preexisting discussion that used "yield_all".
|>oug
More information about the Python-list
mailing list