I'd like to assign a data attribute to an instance of my super class taken at instantiation.
For example:
class Sub(Super):
def __init__(self, name):
self.name = Super.__init__(self, name)
In other words, I want to use as my name
what the superclass Super
yields.
Is this practice frowned upon? I didn't see any other posts using this syntax, but can't figure how I would otherwise use an instance of my superclass during instantiation.