Comparison of Python with PHP and Perl?

D-Man dsh8290 at
Fri Jun 1 14:29:31 EDT 2001

On Fri, Jun 01, 2001 at 07:31:15PM +0200, Andreas Hollmann wrote:
| Question:
| Is Python able to integrate its code int HTML-Files like PHP does or
| must Python-Scripts be extra files like Perl-Scripts?

There are several choices :

    Traditional CGI :
        same as writing Perl, but the code is much more readable ;-)

    PyHTML :
        write code like this (indentation is significant, no closing
        tags needed -- the dedent fills it in automatically)

                    data = open( "some_file" , "r" )
                    for line in data.readlines() :
                        print data , "<br>"

    Zope (DTML) :
        you write various code-like tags that can integrate with other
        python code, etc.

        This looks quite interesting and I am just starting to
        investigate it.


More information about the Python-list mailing list