3 ms·
But isn't the whole point of inheritance in python precisely because the namespaces collide? You are taking advantage of this 'collision' in order to allow gen
by cat199 9y ago
But isn't the whole point of inheritance in python precisely because the namespaces collide?
You are taking advantage of this 'collision' in order to allow generic operations to function at higher/lower levels of the system..
Yes, however in python, as others have pointed out here, this unfortunately entails knowing what all the related layers are doing.. so it should be only one tool in the toolchest depending on the problem at hand..
- porpoisemonkey 9y ago> But isn't the whole point of inheritance in python precisely because the namespaces collide? I think the point from the original post is that a collision of the private namespaces of the parent and child class is a bad thing. Hence the calling out of underscore in the variable names to indicate the values should be considered private.