On Thu, Mar 21, 2002 at 11:02:06PM +0000, Stephen Naicken wrote:
> I have read lots of stuff on creating the singleton design pattern usin=
> python and to be honest most of this information has left me confused.
> What is the best way to create the singleton in jython?
Well, in http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531 Al=
Martelli argues that you don't want a singleton in most cases. He propose=
different pattern he calls Borg.
The implementation works just as well in Jython.
J.Wender@... - Fon +4970719457-257 Fax-211
science+computing ag - Hagellocher Weg 71-75 - 72070 T=FCbingen
In case you're not a computer person, I should probably point out that "R=
Soon Now" is a technical term meaning "sometime before the heat-death of =
universe, maybe". (Scott Fahlman)