On Sat, Feb 20, 2010 at 8:25 PM, egasimus <fallenbl...@gmail.com> wrote: > Hi, newbie here. I've read on using the 'global' keyword being > discouraged; then what is the preferred way to have something, for > example a class containing program settings, accessible from > everywhere, in a program spanning multiple files? > -- > http://mail.python.org/mailman/listinfo/python-list >
There is probably a smarter way but I would recommend passing a settings object around. -- http://mail.python.org/mailman/listinfo/python-list