Defining a Custom Built-in Type
摘要
In the previous chapter, we took a look at the PyType_Type structure and used the PyList_Type structure for lists as an example. In this chapter, I’ll demonstrate a similar approach to create our own built-in type named PyKitty_Type and even make it perform backflips!