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:
http://www.python.org/doc/api
For more information about how to use the API, check out Chapter 6, "Extending and Embedding Python," and the document "Extending and Embedding the Python Interpreter," which also comes as part of the Python installation.