Ben Chuanlong Du's Blog

It is never too late to learn.

Shadow Parent Methods in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Below is an example of shadowing a parent method in a child class.

Class in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

@abstractmethod, @staticmethod, abstract class, etc.

override,

prefer classmethod to static method;

both class and static methods can be override

Meta Class

https://stackoverflow.com/questions/100003/what-are-metaclasses-in-python

It seems to me …