title: Multiple instances of a class containing a list in python
body: <p>When running following code in python, i create 2 objects of one class, that contains a list object:</p>
  
  <pre><code>class Test():
      def run(self):
          obj1 = klasse("Werner")                       
          obj2 = klasse("Franz")  
  
          print obj1.name
          print obj2.name
          obj2.add_name("Thomas")
          print obj2.name
  
  class klasse(object):
      name = [];
  
      def __init__(self, value):
          self.name.append(str(value))
  
      def add_name(self, value):
          self.name.append(str(value))
  
  if __name__ == "__main__":
      Test().run()
  </code></pre>
  
  <p>this returns in console:</p>
  
  <pre><code>['Werner', 'Franz']
  ['Werner', 'Franz']
  ['Werner', 'Franz', 'Thomas']
  </code></pre>
  
  <p>The Question: it seems to be the same list object in the two created klasse.objects. Whats the solution to isolate the name lists in every created object?</p>
  
  <p>The console output should be:</p>
  
  <pre><code>['Werner']
  ['Franz']
  ['Franz', 'Thomas']
  </code></pre>