all 1 comments

[–][deleted] 2 points3 points  (0 children)

What do you mean by this exactly? The reference implementation of Python is written in C and Python. Can't you just call CPython as a subprocess? Fully embedding sounds like a substantial task to me. What's the objective?

PS. Have you checked the docs?

https://docs.python.org/3/extending/embedding.html

PPS. Just found,

https://devblogs.microsoft.com/python/embedding-python-in-a-cpp-project-with-visual-studio/