Creating classes and objects more than once?
Chris Rebert
clp at rebertia.com
Thu Nov 27 18:32:18 EST 2008
On Thu, Nov 27, 2008 at 2:36 PM, Viktor Kerkez <alefnula at gmail.com> wrote:
> A better way to do this was http://pastebin.com/m1130d1fe :)
> --
> http://mail.python.org/mailman/listinfo/python-list
>
The Python position on singletons is generally to just use a module
instead (preferred), or apply the Borg pattern:
http://code.activestate.com/recipes/66531/
Cheers,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
More information about the Python-list
mailing list