18 Nov
2011
18 Nov
'11
10:37 a.m.
Lee, 17.11.2011 11:07:
I am new to Python C/API, I am trying to follow the official docs, but I am confused about raising and catching exceptions from an extension.
Just in case your actual goal is not to learn the C-API but to write code for it, you may want to take a look at Cython. It's a Python compiler that allows you to quickly write efficient C extensions for CPython without having to know the details of the underlying C-API.
Stefan