title: how to declare uninitialized variable in class definition in python
body: <p>I come from a MATLAB background.  When I create class definitions, I can instantiate "empty" variable names and then later assign values or objects to them.  I.e. </p>
  
  <hr>
  
  <pre><code>classdef myclass &lt; handle
  
      properties
          var1
          var2
      end 
  end
  
  a = myClass;
  a.var1 = someOtherClassObject;
  </code></pre>
  
  <p>How do I do this in Python?  I tried something like this:</p>
  
  <pre><code>class myClass:
  def __init__(self):
      var1 
      var2
  
  a = myClass()
  a.var1 = someOtherClassObject()
  </code></pre>
  
  <p>But that's not correct.  The main purpose is to build a definition of my class, like a structure, and then later go and instantiate the variables as needed.</p>
  
  <p>And help would be appreciated.</p>