Py_Apache Vs. mod_python

johnvert at my-deja.com johnvert at my-deja.com
Sun Jul 9 14:58:23 EDT 2000


In article <396863B7.875EA939 at stroeder.com>,
  Michael =?iso-8859-1?Q?Str=C3=B6der?= <michael at stroeder.com> wrote:
> Tim Roberts wrote:
> >
> > I'll say.  Am I correct in understanding that the basic purpose of
> > "mod_snake" is to allow me to write other Apache modules in Python,
while
> > PyApache is a module which lets me run Python CGI scripts without
> > launching a separate interpreter,
>
> Yes. PyApache resets the Python interpreter everytime which leads to
> reloading of the modules for every hit.
>
> With mod_python you can write Apache handlers but also wrap normal
> CGI-BIN scripts without having to reload the modules for every hit.
>
> Ciao, Michael.

Which one of these modules can you use to write embedded python code?
I.e.

foo.html.py:
<html>
<body>
Looping through red, blue, green:
<python>
colors = ['red', 'blue', 'green']
for color in colors:
    print color
</python>
</body>
</html>

Thanks,
 -- John


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list