Welcome back! This is the 3rd video in the CPython Type System Internals series. In this video we finally start looking at the CPython source code and understand how the type system interface is implemented.
This video focuses on explaining the structs PyObject and PyTypeObject, which are the building blocks for the whole CPython type system. The PyObject struct plays the role of the base class which is inherited by the definition of every type. And the PyTypeObject struct contains all the type related information about an object which allows the runtime perform various operations on that object.
Next Video
In the final video of this series, we look at how an actual built-in type is implemented in CPython:
Decoding PyObject and PyTypeObject in CPython