from my past knowledge of python oop i know that python has a single copy of a class variable for all class instances;it means:
>>> class A: foo = []
>>> a, b = A(), A()
>>> a.foo.append(5)
>>> b.foo
[5]
but when i do this:
>>> class A():
cl_var=5
def __init__(self,b):
self.obj_var=b
>>> a1,a2=A(2),A(5)
>>> a1.cl_var
5
>>> a1.cl_var=23
>>> a2.cl_var
5
why a2.cl_var not changing to 23 ?