Python and C++

The most common motivation to combine Python and C++ is the desire to write Python scripts which run as fast as native C++ code. This can be achieved in two different ways. The first option is to use modules like Numba or Cython which modify the compiling process to produce fast C / C++ code. This feature can be used quite easily and usually brings a significant speed improval but also decreases the flexibility of plain Python code. It is also possible to interact between Python and C++ code using APIs.



Online Resources