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 -- https://mail.python.org/mailman/listinfo/python-list