At the beginning of script2.py, write:
>From script1 import <function1>,  ..., <functionX>
 
Sincerely,

Geneviève

 


  _____  

De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Robert
Berman
Envoyé : vendredi 14 novembre 2008 13:57
À : [tutor python]
Objet : [Tutor] referencing external functions


I have a number of functions written in a python script called script1.py.
In another  script, script2.py, I need to use a number of the functions
residing in script1.py. How do I make these functions known to script2.py.

Thank you,

Robert


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to