Associated article: Extending Python
Tags: Tools Open Source Design
Published source code accompanying the article by Greg Smith in which he leverages one of Python's greatest strengths--the ability to extend it with modules written in C or C++. Also see PYTHONC.ZIP.
Extending Python by Greg Smith Listing One /* ---------- stats.c -------------- * simple example of a C module */ #include <math.h> #include "stats.h" /* given a set of pointers to 'n' floats (>=1), find the mean and ...