Python based http server

Alex Martelli aleaxit at yahoo.com
Sun Oct 12 13:16:06 EDT 2003


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