title: How to "see" the structure of an object in python
body: <p>I am wokring in python 2.7.  I have been experimenting with the <a href="http://tweepy.github.com/" rel="nofollow noreferrer">tweepy</a> package.  There is an object called the tweepy.models.status object, whose function is defined here: <a href="https://github.com/tweepy/tweepy/blob/master/tweepy/models.py" rel="nofollow noreferrer">https://github.com/tweepy/tweepy/blob/master/tweepy/models.py</a>.</p>
  <p>I have a function that looks like this:</p>
  <pre><code>    def on_status(self, status):
          try:
              print status
              return True
          except Exception, e:
              print &gt;&gt; sys.stderr, 'Encountered Exception:', e
              pass
  </code></pre>
  <p>The object I am referring to is the one returned from the <code>on_status</code> function, called <code>status</code>.  When the <code>print status</code> line executes i get this printed on the screen;</p>
  <blockquote>
  <p>tweepy.models.Status object at 0x85d32ec&gt;</p>
  </blockquote>
  <p>My question is actually pretty generic.  I want to know how to visually print out the contents of this <code>status</code> object? I want to know what information is available inside this object.</p>
  <p>I tried the <code>for i, v in status :</code> approach, but it says this objects is not iterable.  Also not all of the object attributes are described in the function definition.</p>
  <p>Thanks a lot!</p>