Demonstration of communication with external code ================================================= C'est no pas un pipe. text-based standard IO ====================== pipe.f90 pipe.py compile ------- on command line: gfortran pipe.f90 -o pipe use --- in python: from pipe import Call c = Call() c([3, 4]) c([3, 5]) del c the last line kills te process. pipe-based binary IO ==================== pipe2.f90 pipe2.py compile ------- on command line: gfortran pipe2.f90 -o pipe2 use --- in python: from pipe2 import Call2 c = Call2() c([3, 4]) c([3, 5]) del c the last line kills te process and deletes the pipes. One may spcify the parameter 'verbose=True' c = Call2(verbose=True) f2p module-based communication ============================== use --- in python from pipe3 import Call3 c = Call3() c([3, 4]) c([3, 5]) This automatically compiles to a binary module and loads it. The module is just loaded in python and does not need to be terminated.