Can python methods be called from a C program?

I remember seeing somewhere that you can call python methods from within C using

#include "python.h"

      

But I cannot find a source for this or any examples.

How can I call python methods from within a C program?

0


a source to share


2 answers


Here is the doc element from python site about extending C with python function



Here is the beginning of the documentation (where it relates to python.h) where you can extend Python with C functionality.

+5


a source


Check out http://docs.python.org/c-api



+2


a source







All Articles