To call the constructor of a parent class in Python 2.7, the standard code that I ve seen is:
super(Child, self).__init__(self, val),
where Child is the child class. (In Python 3.x, this is simplified, but I have to use 2.7 for now.) My question is, wouldn t it be better for the "canonical" use of super in python 2.7 to be:
super(self.__class__, self).__init__(self, val)?
I ve tested this, and it seems to work. Is there any reason not to use this approach?