[Python-Dev] '*' instead of 'yield'? (original) (raw)
Tim Peters tim.one@home.com
Sun, 5 Aug 2001 19:12:40 -0400
- Previous message: [Python-Dev] '*' instead of 'yield'?
- Next message: [Python-Dev] '*' instead of 'yield'?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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 .
- Previous message: [Python-Dev] '*' instead of 'yield'?
- Next message: [Python-Dev] '*' instead of 'yield'?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]