Class static variables

musingattheruins at my-deja.com musingattheruins at my-deja.com
Sat Jul 22 01:15:41 EDT 2000


In article <8la2mp$n5v$1 at nnrp1.deja.com>,
  Guillaume <forums at memoire.com> wrote:
>
> > you are attaching a per-object variable with b.a=2 try CA.a - i
think
> > you will find it is still 0.
> > regards,
> > bill
>
> Right, but what I want is a static class var defined in A.

CA.a __is__ the static class var.  get it?  it's the same for all
instances.



Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list