Static member variables

Thomas Svensson thomas_s at ebox.tninet.se
Sun Jul 9 15:52:55 EDT 2000


Hello,

Is there a way of declaring static (and constant) member variables in
classes? I have a member variable that should be unique for each class
type and thus should not waste memory for each instance of the class I
create. Something like the __doc__ string I guess.

Can this be done?


Thanks,
Thomas




More information about the Python-list mailing list