[Python-ideas] Cofunctions: It's alive! Its alive!
bruce at leapyear.org
Wed Aug 11 07:26:11 CEST 2010
On Aug 10, 2010 6:18 PM, "Greg Ewing" <greg.ewing at canterbury.ac.nz> wrote:
> Bruce Leban wrote:
>> Is there a pythonesque alternative?
> It's generally considered unpythonic to assign arbitary meanings
> to randomly chosen punctuation (decorator syntax notwithstanding!) ...
I quite agree. I hate random punctuation.
Suppose hypothetically that cocall is just one of a class of execution
modifiers that we might ultimately want to add. In that case maybe there's a
syntax (analogous to adding decorator syntax) that doesn't require new
keywords. There's yield, yield from and cocall. Are there more?
(I don't know. I'm just wondering.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas