Super Python (part 2)
Super Python (part 2)
Posted Apr 27, 2022 14:15 UTC (Wed) by smurf (subscriber, #17840)Parent article: Super Python (part 2)
So if you want to follow the MRO you use super().
If not, you call the superclass of the current class, which is how things worked before super() was invented in the first place. (That code still can be found in quite a few old Python libraries.)
You can even write generic code to do this, by way of "super().__thisclass__.methodname(self, …)". Yes that's somewhat ugly, but it works.