I\'m writing Python scripts for Blender for a project, but I\'m pretty new to the language. Something I am confused about is the usage of static variables. Here is the piece of
use type(self) for access to class attributes
type(self)
>>> class A(object): var = 2 def write(self): print type(self).var >>> class B(A): pass >>> B().write() 2 >>> B.var = 3 >>> B().write() 3 >>> A().write() 2