From: Jan W. <j.w...@sc...> - 2002-03-22 07:32:34
|
On Thu, Mar 21, 2002 at 11:02:06PM +0000, Stephen Naicken wrote: > Hi, ReHi, > I have read lots of stuff on creating the singleton design pattern usin= g > 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= ex Martelli argues that you don't want a singleton in most cases. He propose= s a different pattern he calls Borg. The implementation works just as well in Jython. Cheerio, --=20 J.W...@sc... - 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= eal Soon Now" is a technical term meaning "sometime before the heat-death of = the universe, maybe". (Scott Fahlman) |