Chapter 27. Extending and Embedding Python

THIS CHAPTER COVERS THE C API USED TO BUILD extension modules and embed the Python interpreter into other applications. It’s not intended to be a tutorial, so readers may want to consult the “Embedding and Extending the Python Interpreter” document available at http://www.python.org/doc/ext, as well as the “Python/C API Reference Manual” available at http://www.python.org/doc/api.

The primary focus of this chapter is to cover the most common cases. Advanced extension-building techniques such as defining entirely new Python types is not covered. This omission is intentional; most advanced extension-building problems are better handled by extension-building tools such as Boost Python and SWIG. References ...

Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.