Python Class and Object Attributes

In [1]: class Foo(object): ...: bar = 123 ...: In [2]: Foo.bar Out[2]: 123 In [3]: f = Foo() In [4]: f.bar Out[4]: 123 In [5]: f.bar = 234 In [6]: f.bar Out[6]: 234 In [7]: Foo.bar Out[7]: 123 In [8]: del f.bar In [9]: f.bar Out[9]: 123