IPC between Python and C++.

I want to learn how to make Python scripts/programs work together with a C++ program. If you wonder what I'd like them to be able to do, I want them to:

*Access variables between each other
*Call each other's functions

If you wonder why I want to do this, is that I simply want to learn how to mix
Python and C++. I want to use C++ for high performance and I want to use Python
for parts where as high performance isn't needed, but where I could need higher/faster productivity. Also because I think that I will need this knowledge
in the future if I become an employed programmer at a company.

I know that there are different ways to do this like pipes and signals.
My problem is that I do not have a clue of how to do it in practice!
Do you know any online/digital guides that can help me as a beginner?
Do you have any tips for how I should start? What method should I use to achieve this?

Thanks for the help.
Last edited on
I think the easiest solution for you might not be actual IPC but rather making a DLL or SO (which ever one applies to your OS) in C\C++ and calling that from your script. You are correct in that knowing how to use IPC is important, but it is just as important to know what tools to use in what situation.
Topic archived. No new replies allowed.