NewStyleClass学习笔记[一]
from : https://www.python.org/doc/newstyle/
New-style Classes
Unfortunately(遺憾,不幸的), new-style classes have not yet been integrated(集成) into Python's standard documention. Fear(擔心) not, however; many people have worked to provide useful information on creating and using new-style classes:
Unifying types and classes(aka descrintro) is Guido's essay(文章) on new-style classes and should be your starting point(起點).
Raymond Hettinger'sHow-To Guide for Descriptorsfocuses on the single most useful aspect(方面) of new-style classes (which includes properties(屬性)).
Python 2.3 Method Resolution Order(MRO) covers(涵蓋了) multiple inheritance(繼承).
Metaclasses will make your head explode(頭大). Here are several(幾個) approaches(方法) to discussing them:
David Mertz and Michele Simionato'sDeveloperWorks article
Mike Fletcher's slideshow
Metaclasses in Five Minutes
Types and Objectsis the start of a new-style class tutorial with lots of figures(數據) and examples, but it's rough(粗略的) and not complete(不完整的).
總結
以上是生活随笔為你收集整理的NewStyleClass学习笔记[一]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DDR3 IP设计说明
- 下一篇: FIFO IP设计说明