info to spice up web pages with python

Keith Dart kdart at techie.com
Tue Apr 4 02:48:21 CEST 2000


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 3/31/00, 5:25:56 PM, "Geoff Nordli" <geoff at gnaa.net> wrote regarding 
info to spice up web pages with python:


> Hello All.

> I normally just use Python to script things, and help me with
> admin tasks.  I know very little about web page development.

> I have a young nephew.  He is really interested in web page
> development.  He wanted to learn JavaScript, but I convinced
> him to give Python a go.

Well, there is actually one good reason to use Javascript: it is run 
by the client (browser). This
allows small scripts to be embedded in web pages. This can be done 
because all modern browsers 
have embedded Javascript (also called Ecmascript) interpreters. To do 
the same thing with Python
would require a Python browser plug-in, and I'm not aware of any that 
exist. There is a Tcl plug-in,
however. 

On the other hand, if you want to do server-side scripting (e.g. CGI), 
then Python works just fine with
your Apache server. In fact, there is a mod_python (from PyApache 
package) available for Apache. This
makes server/CGI scripts run faster, but won't really be necessary for 
CGI experimenting.

HTH,
Keith Dart







More information about the Python-list mailing list