class MyRectangleShape(sfml.graphics.RectangleShape):
def __init__(self):
print('Output: ' + str(self.size))
box = MyRectangleShape()
Output: 0.0x, 0.0y
Why is RectangleShape's constructor implicitly called here? self should not have the attribute size without explicitly calling RectangleShape.__init__(). The reason this is significant is because this will cause all kinds of problems with the way I want to expand this class. Python isn't supposed to work that way. The only way I can imagine this would be intentional is if there is some metaprogramming causing it, and I don't know much about that.
Tried in Python 2.7.7 and 3.2.5. Same behavior in both.
Until I understand the problem, I guess I'll just stick to composition.