Is it possible to / How to get the c++ code generated from running pythran on python

Pythran is a Python-to-C++ compiler for a subset of Python that includes partial numpy support. It acts a little like Numba and Cython—you annotate a function’s arguments, and then it takes over with further type annotation and code specialization. It takes advantage of vectorization possibilities and of OpenMP-based parallelization possibilities.

In some examples I show how to use it from inside python to optimize it, but i am wondering if it is possible to use it for translating python code to c++...

Can it do so? What if the functions I want to use depend on another one? What if the other functions are imported from a separate module? Is there an example / tutorial of such a process?

Answers