Type system
本文描述python的type system。
Duck type
为各种操作都指定special method。
python duck type的实现
参见3. Data model¶的3.2. The standard type hierarchy¶的Custom classes章节。
duck type and attribute access。
显然,python duck type的实现是和它的run model、data model密切相关的。