Twisted Matrix and Python Scripts
andrew-pythonlist at puzzling.org
Mon Sep 22 03:08:38 CEST 2003
On Sun, Sep 21, 2003 at 01:41:04PM -0700, Fazer wrote:
> I am very interested in fooling around with Twisted Matrix's HTTP Web
> Server. I was thinking if .rpy scripts would run much faster than
> traditional CGI scripts?
They'll generally be much faster, because there's no need to start a fresh
python process for every request.
It's worth noting, though, that .rpy scripts aren't meant to be Twisted
equivalent of CGI scripts; they should simply create and configure a
twisted.web.resource.Resource (or subclass thereof). If your .rpy is more
than 10 lines, you're almost certainly using it the wrong way... see
> After looking how asynchronous Twisted's framework really is, I have
> been interested in it.
By the way, you might find you have better luck with Twisted questions on
the Twisted mailing list, twisted-python at twistedmatrix.com. Not all of the
Twisted people read comp.lang.python regularly.
More information about the Python-list