简体   繁体   English

Python元类教程

[英]Python metaclasses tutorial

Sorry if I have to use you as Google, but Google does not help. 抱歉,如果我必须将您用作Google,但Google无法提供帮助。 I was looking for a very good tutorial about metaclasses in Python. 我一直在寻找有关Python元类的很好的教程。 One feature I remember about it was a three-paned image where you had metaclasses, classes and instances, one for each column of the image. 我记得它的一个功能是三屏图像,其中有元类,类和实例,每个图像对应一列。 The author progressively added blocks for each of them, while explaining the magic behind metaclasses. 在解释元类背后的魔力的同时,作者逐步为每个元素添加了块。

It was a very good tutorial but I really cannot find it any more. 这是一个很好的教程,但我真的找不到了。

您可能是指Python类型和对象

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM