title: How to check a variable is class object or not
body: <p>Assume a simple class:</p>
  
  <pre><code>class MyClass(object):
      pass
  
  .
  .
  .
  m = MyClass
  print type(m) # gets: &lt;type 'classobj'&gt;
  # if m is classobj, how can i check a variable is class object?
  </code></pre>
  
  <p>My question is: how can i check a variable is a class object?</p>
  
  <p>a simple solution:</p>
  
  <pre><code>if str(type(m)) == "&lt;type 'classobj'&gt;":
      # do something
  </code></pre>
  
  <p>But i think there is at least one classic way to check that.</p>