[Python-Dev] '*' instead of 'yield'?

Tim Peters tim.one@home.com
Sun, 5 Aug 2001 19:12:40 -0400


[Roman Suzi]
> Maybe it will be nicier to have unary * instead of 'yield'
> for generators?

[Greg Stein]
> This is Python, not Perl. Why use an obscure character instead of
> a keyword?
> It doesn't make sense to me...

I doubt it would be warmly received in Perl-land, either.

Roman, this will never fly unless you can talk Guido into also allowing "**"
as a synonym for "return".  I wish you luck <wink>.