import and shared global variables

Diez B. Roggisch deets at nospam.web.de
Sat Mar 11 01:56:50 CET 2006


> has to be imported by others.  Would a module global.py (defining glob 
> and imported by whoever needs it) be more pythonic?

I'd say yes.

> (I didn't want to do 
> that because I really want to resist the temptation of introducing 
> glob1, glob2, glob3...)

I miss seeing what that has to do with creating a special module.

Diez



More information about the Python-list mailing list