O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required