title: How to *only* print class shared variables?
body: <p>Consider the following code:</p>
  <pre><code>class Dummy(object):
    SHARED_0 = '0'
    SHARED_1 = '1'
  
  printOnlySharedVariablesValues(Dummy)
  </code></pre>
  <p>What I would like to be printed is:</p>
  <pre><code>{'0', '1'}
  </code></pre>
  <p>I tried:</p>
  <pre><code>class Pass(object):
    pass
  
  set(Dummy.__dict__) - set(Pass.__dict__)
  </code></pre>
  <p>Which yields:</p>
  <pre><code>set(['SHARED_0', 'SHARED_1'])
  </code></pre>
  <p>No biggie. Using those keys I can get the values. However I consider this somewhat hacky and not elegant.</p>
  <p>My questions is:
  <strong>What is the best way to print ONLY class shared variables in Python?</strong></p>
  <p>I want to point out, that the answer provided here: <a href="https://stackoverflow.com/questions/521710/how-can-i-get-only-class-variables">How can I get only class variables?</a> does not satisfy me, it is even hackier than my solution.</p>