title: Making a variable non-inheritable in python
body: <p>Is there a way to make a variable non-inheritable in python? Like in the following example: B is a subclass of A, but I want it to have its own SIZE value.</p>
  
  <p>Could I get an Error to be raised (on __init__ or on getsize()) if B doesn't override SIZE?</p>
  
  <pre><code>class A:
     SIZE = 5
     def getsize(self): return self.SIZE
  
  class B(A): pass
  </code></pre>
  
  <p><strong>Edit</strong>: ... while inheriting the getsize() method...?</p>