Appendix A. Python/C API

The intention of this appendix is to expose the C API that you need to use in order to create extension modules for your Python programs or to embed Python in your C/C++ applications. The information provided in this appendix is entirely extracted from the C/API reference manual, written by Guido van Rossum, which is part of the Python distribution (see copyright note in Appendix C, "Python Copyright Notices" ). Note, however, that as you're reading, this document might be incomplete because new Python versions will be arriving soon. Check out the following address for the most up-to-date version of this work:

For more information about how to use the API, check out Chapter 6, "Extending and ...

Get Python Developer's Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.