从书籍';学习Python';马克·卢茨
他解释了如何从类C中查找显式属性名,如下所示:从书籍';学习Python';马克·卢茨,python,python-3.x,Python,Python 3.x,他解释了如何从类C中查找显式属性名,如下所示: 2. From a class C, search the class, its superclasses, and its metaclasses tree, as follows: a. Search the __dict__ of all metaclasses on the __mro__ found at C’s __class__ b. If a data descriptor was found
2. From a class C, search the class, its superclasses, and its metaclasses tree,
as follows:
a. Search the __dict__ of all metaclasses on the __mro__ found at C’s __class__
b. If a data descriptor was found in step a, call it and exit
c. Else, call a descriptor or return a value in the __dict__ of a class
on C’s own__mro__
d. Else, call a nondata descriptor or return a value found in step a
我理解所有a、b、d和c的部分,或者在c自己的类的目录中返回一个值
我不懂c的部分,否则,调用描述符
在b中,它已经检查了数据描述符。在d中,它将检查非数据描述符。
他在c中指的是哪个描述符
如果你能举个例子就好了