April 2016
Beginner
156 pages
3h 23m
English
An extension module written in C will have the following parts:
Python.hHeader snippets are quite standard, just like a normal C module. We need to include the Python.h header file to give our C code access to the internals of the C-API. This file is present in <path_to_python>/include. We will be using an array object in our example code, hence we have included the numpy/arrayobject.h ...