I remember seeing somewhere that you could call python methods from inside C using
#include "python.h"
But I can’t seem to find the source for this or any examples.
How can I call python methods from inside a C program?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a doc item from the python site about extending C with python functionality
Here’s the start of the documentation (where it refers to python.h) where you can extend Python with C functionality.