singleton objects with decorators

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Tue Apr 12 04:04:10 EDT 2005


Uwe Mayer wrote:
> Tuesday 12 April 2005 06:36 am Steven Bethard wrote:
>> Uwe Mayer wrote:
>>> I've been looking into ways of creating singleton objects.
>> 
>> It strikes me that I've never wanted or needed a singleton object.
>> Would you mind sharing your use case?  I'm just curious.
> 
> I am using a class to manage configuration settings in an application. This
> object should only existe once so that when the user
> changes a setting through a configuration dialog the change imminent in all
> locations where access to config settings are needed.

In this case, you may want to read

http://www.aleax.it/5ep.html


Grüße
Reinhold



More information about the Python-list mailing list