title: Access static class variable of parent class in Python
body: <p>I have someting like this</p>
  
  <pre><code>class A:
    __a = 0
    def __init__(self):
      A.__a = A.__a + 1
    def a(self):
      return A.__a
  
  class B(A):
    def __init__(self):
      # how can I access / modify A.__a here?
      A.__a = A.__a + 1 # does not work
    def a(self):
      return A.__a
  </code></pre>
  
  <p>Can I access the <code>__a</code> class variable in <code>B</code>? It's possible writing <code>a</code> instead of <code>__a</code>, is this the only way? (I guess the answer might be rather short: yes :)</p>