By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,275 Members | 1,924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,275 IT Pros & Developers. It's quick & easy.

Twisted Matrix and Python Scripts

P: n/a
Hello,

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?

After looking how asynchronous Twisted's framework really is, I have
been interested in it.

Thanks,
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sun, Sep 21, 2003 at 01:41:04PM -0700, Fazer wrote:
Hello,

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
http://twistedmatrix.com/documents/h...eb-development.
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, tw************@twistedmatrix.com. Not all of the
Twisted people read comp.lang.python regularly.

-Andrew.
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.