sort of a beginner question about globals

fred.dixon fred.dixon at gmail.com
Wed Apr 13 10:44:11 EDT 2005


I want to use OPTIONS as a global var.
In this particular case I am trying to set a global debug constant so I
can have some debug logging happen when my program is run with a
-debug option.
what will actuall end up in OPTIONS is OPTIONS.debug = True as i am
using optparse module.




More information about the Python-list mailing list