Python based http server

Jegenye 2001 Bt jegenye2001 at fw.hu
Sun Oct 12 14:51:43 EDT 2003


Yes, coroutines are more general than generators.
The code execution is always resumed from the point of calling with
generators, while with coroutines that's not the case.

Regards,
 Miklós

--
Prisznyák  Miklós
---
Jegenye 2001 Bt. ( jegenye2001 at (NoSPAM)parkhosting dot com )
Egyedi szoftverkészítés, tanácsadás
Custom software development, consulting
http://jegenye2001.parkhosting.com


Doug <zr7m08j02 at sneakemail.com> wrote in message
news:3F8993AD.4080404 at sneakemail.com...
> I thought the yield thing in Python 2.3 was a couritine implementation.
>    Is there a difference between generators and coroutines?
>
>
>
>
> Alex Martelli wrote:
>
> > Doug wrote:
> >
> >
> >>I am thinking of using a Python based HTTP server instead of Apache.
> >>
> >>I would be interested in one that employed generators and coroutines.  I
> >>know those are fairly new features of python, so maybe nothing is
> >>available yet.
> >
> >
> > coroutines are not a part of Python.  Twisted, the best way to write
> > standalone Python HTTP servers, can use generators productively,
> > see e.g. http://twistedmatrix.com/documents/howto/flow (but it will
> > make little sense to you until you understand more about Twisted).
> >
> >
> > Alex
> >
>






More information about the Python-list mailing list