CGI with Python: advantages?

Mimmo noname at unknown.com
Sun Aug 6 14:02:06 EDT 2000


Moshe Zadka <moshez at math.huji.ac.il> wrote:

>> Does it offer something more (speed, efficency or whatever else) than
>> Perl or other languages used to write this kind of scripts?
> If you're looking for speed and efficiency, I think the main overhead in
> most CGI scripts is the prohibitive start-up time. While Python's start-up
> time is longer then Python, they are pretty close
You used Python twice in this sentence: which is the real Python and
which is Perl? ;-)

>> Or can I
>> still use Perl for my CGIs and use Python for other things?

> Ummmm......I'm sorry. Once you start using Python, you have to use it
> everywhere. Using another language that starts with a P is completely out
> of the question!
Including Pascal? ;-)

>> Maybe this will sound as a quite "stupid" question, but I'd like to have
>> some informations from people who use it for this kind of programming!


> However, do note
> that Python's cgi.py is closer to Perl's CGI::Lite  then to Perl's CGI.pm.
I still haven't used it yet. I'll take a look, anyway.

> If you want cool HTML generation, you should get the htmlgen module. If
> you find this is really a need, consider if you're not mixing code with
> graphic design and or content, and if CGI is the correct solution for you.
Very often it is! But I also use PHP and a bit of Java when I need them.
I also want to know another language (Python) mainly to write CGIs, that maybe
I'll use for other things in the future: now CGIs are what I need (for
my bread!!)!!
Do you think I'm totally crazy? ;-)

Mimmo



More information about the Python-list mailing list