Enhancing Python with Custom C Extensions

Introduction This article is going to highlight the features of CPython’s C API which is used to build C extensions for Python. I will be going over the the general workflow for taking a small library of fairly banal, toy example, C functions and exposing in to a Python wrapper. You might be wondering… Python is a fantastic high level language capable of just about anything, why would I want to deal with messy C code? And I would have […]

Read more