* Cecilia Alm <[EMAIL PROTECTED]> [070415 18:21]:
> If a module "x" imports module "y" with a global variable "z", then
> this global can be referred or assigned to in "x" with the syntax
> "y.z" (no "global" keyword preceding) and changes are accessible to
> class methods in "y" referring to "global z".

Well, you don't need the global statement for accessing z. You need it
for modifying it, or Python will assume that you are working with a
local variable z.

Andreas
_______________________________________________
Tutor maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to