Contribute Media
A thank you to everyone who makes this possible: Read More

Here be Dragons - Writing Safe C Extensions


Writing Python C Extensions can be daunting; you have to embrace not just C but Python's C API, which is huge. Not only do you have to worry about just your standard malloc() and free() but now you also have to contend with how CPython manages its memory.

This talk describes what you need to know to write fast ,reliable Python extensions in 'C'. It demonstrates some of the pitfalls you can encounter and some simple and robust coding patterns that you can use to avoid them. After this talk you will be able to write Python extensions with confidence.

This talk is largely based on this material and some hard won industrial experience.


Improve this page