[Tutor] referencing external functions

DIAGORN Geneviève GDI at teamlog.com
Fri Nov 14 14:23:05 CET 2008

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




De : tutor-bounces+gdi=teamlog.com at python.org
[mailto:tutor-bounces+gdi=teamlog.com at python.org] De la part de Robert
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,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081114/145cbfb6/attachment.htm>

More information about the Tutor mailing list