C extensions documentation

where can I get complete C extension creation documentation for CPython, from what I see now the documentation is scattered over different places. Any book suggestions would also be helpful. Thank you in advance.

I think this is a good starting point to read through

And as a book I recommend:

Of course this is more directed at people who want to contribute to the cpython core, but the knowledge they offer will help you understand how the c api works and how to develop c extensions

1 Like

Thank you @DerSchinken.

The python C API is hard to use correctly.

Suggest that you look at tools that take that pain away for you.
cython, pycxx, pybind11, etc.

1 Like

Thank you @barry-scott