Inter-module globals

Jorge Godoy godoy at
Thu Mar 9 13:31:45 CET 2006

Anton81 <forum at> writes:

> I want to use globals that are immediately visible in all modules. My
> attempts to use "global" haven't worked. Suggestions?

Use a module and a class variables for that.  Import your module and
read/update class variables as you need them.

Jorge Godoy      <godoy at>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.

More information about the Python-list mailing list