On Oct 10, 9:39 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Wed, 10 Oct 2007 09:36:56 +0000, pythoncurious wrote:
> > So how do people solve this? Is there an obvious way that I missed?
>
> Mostly by avoiding singletons. Why do you need only one instance? Perhaps
> you should consider the Borg pattern instead.
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531


That wouldn't help.  In the OP's case, it would create two borgs.  Did
anyone actually read the OP's post?  Or is this just an opportunity to
pimp libraries and bicker about style?


Carl Banks

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to