First page Back Continue Last page Summary Graphics
Python C API
Uses
- Extending with new C types
- Embedding interpreter(s) in applications
Often straightforward to record Python in C
Two layers of object APIs
- Abstract object API: PySequence_GetItem()
- Concrete: PyDict_GetItem()
- Poses problem for subclassing built-in types
Notes: