suggestions for functional style (singleton pattern?)
Fabien
fabien.maussion at gmail.com
Mon Mar 2 05:19:06 EST 2015
On 01.03.2015 06:05, Michael Torrie wrote:
> A module*is* a singleton pattern, particularly one
> that maintains state. I use sometimes use this feature for sharing
> config and other data between other modules (global state when it's
> required).
I do this too, after some helping recommendations I got from this
discussion group. I find it neat to use a module for sharing config
states, but I always wondered: does this pattern fall into the "globals
are devil" category?
Cheers,
Fabien
More information about the Python-list
mailing list