(newbie) class with a single instance ?!

Kleine Aap een-niet-bestaande-kleineaap at xs4all.nl
Fri Dec 15 14:38:52 EST 2006


Andrea Tomadin wrote:

> This works, but isn't it weird to define a class if I know from the
> very beginning that there will be no more than an instance of that
> class?

Singleton

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52558



More information about the Python-list mailing list