C++ & Python

No doubt Python is a great language, still it is too slow IMO. However I want to keep on with both of them in my project.
How to call Python library/funtions from C/C++ code?
Can someone help me with the right information. I am using Microsoft Visual Studio 2019
I know that before posting a naive question here I should have googled and I did indeed, however the vast information it provides I find difficult to solve this problem. Has anyone dealt already with this ?
 
Last edited:

Daniel Duffy

C++ author, trainer
Cython is good as well. It is not the only one.

be sure

1. Call C++ from Python
2. Call Python from C++ (why? just asking)
 

Daniel Duffy

C++ author, trainer
C++ 17 Spaceship 3-way operator <==> serves the same purpose as Python's functools.total_ordering.
 
Last edited:
Top