The predecessor to this article is Metaclass programming in Python, Part 1 (developerWorks, February 2003).
本文章的第1部分是 Python 中的元类编程,第 1 部分 ( developerWorks 2003年2月)。
Users must understand the differences and interactions between metaclass programming and traditional object-oriented programming (under both single and multiple inheritance).
用户必须理解元类编程和传统面向对象编程的不同点和相同点(单继承和多继承)。
It has a consistent class instantiation and inheritance structure and the ability of intercessive structural computational reflection, which enables it to support safe metaclass programming.
该语言具有协调一致的类对象结构,具备结构化计算反射能力,能够进行安全的元类程序设计。
应用推荐