In article <[EMAIL PROTECTED]>,
Steven D'Aprano  <[EMAIL PROTECTED]> wrote:
>On Thu, 25 Sep 2008 21:17:14 -0700, Aahz wrote:
>>
>> Seems to me that if all the module is used for is to store state, you're
>> wasting a file on disk.  I personally prefer to use a class singleton.
>
>I don't recognise the term "class singleton". Can you explain please? How 
>is it different from an ordinary singleton?

An ordinary singleton is instantiating the class multiple times yet
returning the same instance object; a class singleton is simply using
the class directly (like a module).
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours."  --Richard Bach
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to