Introduction to the Python programming language
3.1. Extending through C
Through C, you can implement new built-in object types and you can call
C library functions. This can be useful if you need a feature that
isn't implemented in Python (yet).
- Python API file for C <Python.h>
- Extending and Embedding - a really good tutorial available on Python.org Docs site