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 that namedtuple is a metaclass in Python.

Comments