Douglas Bagnall - pyserf - a shortcut for writing C extensions in C
summary
pyserf is a small Python script that reads a Python-style module outline and emits a ready-to-compile C source file for a Python extension, preserving docstrings and generating type conversion and wrapper code. The talk explains how pyserf parses the outline using Python’s standard parsing modules, how the generated C follows recommended extension patterns so you only need to fill in the function bodies, and uses that generator to demonstrate what writing a C extension by hand requires.
AI-written summary · about
related talks
25mHow to bring your C++ project to Python land
29mThe Art of Extending Python with other languages
05mgopy: extending CPython with Go
31mUnderstanding Python from the inside: C concepts to dive into CPython fearless
29mC++ ♥ Python: from modules to hybrid applications
01h 01mExtend and Embed Python with C++
36mIntroduction to C++ python extensions and embedding Python in C++ Apps
15mExtending Python Into the Future