How to use a variable form main script in a module.

Peter Torstenson p.t at iname.com
Mon Jul 26 09:13:14 EDT 1999


This is probaly a silly question from a newbie.
In my main script I put a value for to a variable called "x".
Now I want to use the "x" variable in a module.
The module is imported into the main script. How to do this?

I've been trying to find out how to do it in tutorials an the reference
manual but I can´t find anyting written about this. Perhaps because it's a
to silly question.

/Peter Torstenson

Rio de Janeiro






More information about the Python-list mailing list