May-25-2022, 07:08 PM
(This post was last modified: May-25-2022, 07:08 PM by Gribouillis.)
It does not work exactly this way. C programs that execute Python code load the Python library which contains a whole set of C functions to communicate with the Python interpreter.
Start by reading Extending and Embedding the Python Interpreter (obviously the «embedding» part is what you are looking for), then have a look at the Python C Api reference manual.
Start by reading Extending and Embedding the Python Interpreter (obviously the «embedding» part is what you are looking for), then have a look at the Python C Api reference manual.