Python for CGI scripting

Duncan Booth duncan at
Tue Aug 6 10:04:08 CEST 2002

Dale Strickland-Clark <dale at> wrote in
news:evatkuo2jnnl281vvcvhbph1c9hkp6laro at 

>>Doing it this way lets you keep the Python process completely separate
>>from the Apache server (even to run it on a separate machine if you
>>wish) and gives you freedom to run multiple python processes with
>>simple load balancing if that should become necessary.
> Are you trying to scare me?

No, just spoil you for choice. :-)

Seriously though, it depends on just how high traffic you envisage, and 
while YAGNI is the best principle it also helps to avoid boxing yourself 
into a corner unnecessarily. I have been looking a bit at using ZServer 
separate from Zope as I think that gives a very nice base for doing web 
applications. CherryPy, mentioned in another post is a similar idea, 
although I have no direct experience of it.

If you simply run CGI scripts in a long running process, do you want to 
allow communication between separate scripts? What about holding session 
state, or sharing database connections? Maybe these things are important to 
you, maybe not.

Duncan Booth                                             duncan at
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?

More information about the Python-list mailing list