title: Get all object attributes in Python?
body: <p>Is there a way to get <strong>all</strong> attributes/methods/fields/etc. of an object in Python?</p>
  
  <p><code>vars()</code> is <em>close</em> to what I want, but it doesn't work unless an object has a <code>__dict__</code>, which isn't always true (e.g. it's not true for a <code>list</code>, a <code>dict</code>, etc.).</p>