title: Stopping a class variable from re-initializing when called again?
body: <p>So here is some example code</p>
  
  <pre><code>class hi(object)
      def __init__(self):
  
          self.answer = 'hi'
  
      def change(self):
  
          self.answer ='bye'
          print self.answer
  
      def printer(self):
  
          print self.answer
  
  class goodbye(object):
  
      def bye(self):
  
          hi().change() 
  
  goodbye().bye()
  hi().printer()
  </code></pre>
  
  <p>When i run this code i output </p>
  
  <pre><code>'bye'
  'hi'
  </code></pre>
  
  <p>I want it to output </p>
  
  <pre><code>'bye'
  'bye'
  </code></pre>
  
  <p>Is there a way to do this while still initializing self.answer to hi or will this cause it to always re-initialize to 'hi' no matter what i do afterwards?</p>