Easy way to check that variable is defined in python?
<p>Is it any way to check if a variable (class member or standalone) with specified name defined? Example:</p>

<pre><code>if "myVar" in myObject.__dict__ : # not an easy way
  print myObject.myVar
else
  print "not defined"
</code></pre>
