Modules - problem

Terry Reedy tjreedy at udel.edu
Thu Oct 17 11:38:12 EDT 2002


"A" <printers at sendme.cz> wrote in message
news:mailman.1034860224.9803.python-list at python.org...
> where z3.py module is like
>
> ########
> #My module z3.py
> global x

This global statement is useless here (ie, does nothing).  It is only
for use within function and only applies within a module.  Reread docs
of global statement.

> x=11
> #########

TJR





More information about the Python-list mailing list