"Tiago Katcipis" <[EMAIL PROTECTED]> wrote

> results of a matrix using jacob. I want to inside the module (inside 
> a
> function on the module )assign a value to a global variable, but the
> only way i found to do this inside the own module function is 
> importing
> the module inside himself. Is there another way of doing this?

Look at the 'global' keyword.

Explained further in the 'What's in a Name' topic of my tutorial.

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


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

Reply via email to