multi-instance and classic singleton design patterns

Lawrence Oluyede raims at
Thu Aug 19 00:22:30 CEST 2004

In data 18 Aug 2004 14:54:05 -0700, Neil Zanella ha scritto:

>  it seems to me that the
> former leads to less coding, so unless I can somehow package the
> singleton pattern in a superclass (so I don't have to code it
> explicityly in every singleton class I have), then I am more
> interested in the multi-instance singleton design pattern.

Seems that Alex Martelli coded a Borg implementation in Python
sometimes ago:

Lawrence (l dot oluyede at virgilio dot it)
"If the implementation is hard to explain, it's a bad idea."
from The Zen of Python by Tim Peters

More information about the Python-list mailing list