Hi,
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.
Could I get an Error to be raised (on __init__ or on getsize()) if B doesn't override SIZE?
class A:
SIZE = 5
def getsize(self): return self.SIZE
class B(A): pass
Edit: ... while inheriting the getsize() method...?