Chapter 8. Extending Python

C is very efficient. Unfortunately, C gets that efficiency by requiring you to do a lot of low-level management of resources. With today’s machines as powerful as they are, this is usually a bad tradeoff—it’s smarter to use a language that uses the machine’s time less efficiently, but your time much more efficiently. Thus, Python.

—Eric Raymond, October 1996

In this chapter...

Introduction/Motivation

Extending Python by Writing Extensions

Related Topics

In this chapter, we will discuss how to take code written externally and integrate that functionality into the Python programming environment. We will first present the motivation for why you do it, and then take you through the step-by-step process of how to ...

Get Core Python Applications Programming, 3rd 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.