Chapter 20. Extending Python
Chapter Topics
Introduction/Motivation
Extending Python
Create Application Code
Wrap Code in Boilerplate
Compile
Import and Test
Related Topics
In this chapter, we will discuss how we can take code written externally and integrate that functionality into your Python programming environment. We will first give you motivation for doing such a thing, then take you through the step-by-step process on how to do it. We should point out, though, that because extensions are primarily done in the C language, all of the example code you will see in this section is pure C.
Get Core Python Programming 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.