title: Easy way to check that a variable is defined in python?
body: <p>Is there any way to check if a variable (class member or standalone) with specified name is defined? Example:</p>
  
  <pre><code>if "myVar" in myObject.__dict__ : # not an easy way
    print myObject.myVar
  else
    print "not defined"
  </code></pre>