Ben Chuanlong Du's Blog

It is never too late to learn.

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 …

Add Method to a Python Class

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

https://www.ianlewis.org/en/dynamically-adding-method-classes-or-class-instanc

http://block.arch.ethz.ch/blog/2016/07/adding-methods-to-python-classes/