Pass a variable to another python script

Rene Pijlman at
Sat Jan 3 18:02:56 CET 2004

>I've written a small cgi python script that collects feedback from a 
>webform. I need to pass the values to another python script.. how do I 
>do this? 

There are many ways (command line, socket, file, database, ...), but the
easiest solution is as parameter of a function in the other module.

In module a:

    feedback = "good site"
    import b

René Pijlman

More information about the Python-list mailing list