Global variable visibility

Terry Reedy tjreedy at udel.edu
Thu Oct 31 20:02:51 EST 2002


"David LeBlanc" <whisper at oz.net> wrote in message
news:mailman.1036107510.2298.python-list at python.org...
> If I create Db in database.py, I can refer to it as database.Db in
main

correct

> can I do the same  thing in commands.py - refer to it as
database.db,

No, unless you...

> or would I have to import  database.py into commands.py too?

yes

TJR





More information about the Python-list mailing list