title: Is there a way to list the attributes of a class without instantiating an object?
body: <p>In Python 3.5, say I have:</p>
  
  <pre><code>class Foo:
      def __init__(self, bar, barbar):
          self.bar = bar
          self.barbar = barbar
  </code></pre>
  
  <p>I want to get the list <code>["bar", "barbar"]</code> from the class.</p>
  
  <p>I know I can do:</p>
  
  <pre><code>foo = Foo(1, 2)
  foo.__dict__.keys()
  </code></pre>
  
  <p>Is there a way to get <code>["bar", "barbar"]</code> <strong>without</strong> instantiating an object?</p>