if not global -- then what?
krister.svanlund at gmail.com
Sat Feb 20 21:02:46 CET 2010
On Sat, Feb 20, 2010 at 8:25 PM, egasimus <fallenblood at 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?
There is probably a smarter way but I would recommend passing a
settings object around.
More information about the Python-list