[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] your opinion: singleton-pattern vs. modules vs. classes
I usually need Borg rather than Singleton.
Explanation from its author here:
http://www.aleax.it/Python/5ep.html
and here:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531
But then I am using pygame to do very simple things -- what I need
is a 'shared state' pattern for my simulation, not graphics. What
I do with pygame is pretty boring and straightforward.
Laura