In article <[EMAIL PROTECTED]>,
Dennis Lee Bieber  <[EMAIL PROTECTED]> wrote:
>On 21 Sep 2008 22:39:47 GMT, Steven D'Aprano
><[EMAIL PROTECTED]> declaimed the following in
>comp.lang.python:
>> 
>> What do you call such a class?
>
>       A wasted definition... The same functionality is achieved by just
>creating and importing a module. Your "class methods" would just be
>functions within the module; class level attributes would be module
>level objects (access with global if writing to them, use a _ to
>indicate "internal")

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.
-- 
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