[Python-ideas] Implementing Coroutines (was Cofunctions - Back to Basics)

Yuval Greenfield ubershmekel at gmail.com
Fri Oct 28 12:58:19 CEST 2011


I'm sorry, I still don't understand what the problem here is. I didn't have
any trouble making a python implementation for the wikipedia coroutine
example:

http://codepad.org/rEgg4GzW



On Fri, Oct 28, 2011 at 12:16 PM, Mark Shannon <mark at hotpy.org> wrote:

> Errata to previous email.
>
>
> >
> >    def co_yield(value):
> >        'Yields (returns) value back to caller of resume() method.'
>
> Should have been
>
>    @staticmethod
>
>    def co_yield(value):
>        'Yields (returns) value back to caller of resume() method.'
>
> Cheers,
> Mark.
> ______________________________**_________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/**mailman/listinfo/python-ideas<http://mail.python.org/mailman/listinfo/python-ideas>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111028/bcf8393f/attachment.html>


More information about the Python-ideas mailing list