Newbie: Can python be embedded in a fortran program?

G. David Kuhlman dkuhlman at netcom.com
Sat Aug 12 15:20:47 EDT 2000


On any platform in which C code can be linked in with and called
from FORTRAN, this problem is equivalent to embedding Python in a C
application. Embed Python into a C module, produce a shared
library, and call into that (C) module from FORTRAN.

  - Dave



Ranjeet Utikar (r.p.utikar at ct.utwente.nl) wrote:
> Hi,
> 
> There is some documentation (and also a lot of threads on this newsgroup) on
> embedding python in a c program. I would like to embed it in a fortran
> program so that the gui, input, error checking is done by python and core
> computations are done in fortran. does anybody have any idea on doing this?
> where can i find pointers for the same? I have access to Compaq visual
> fortran 6.1.
> 
> TIA
> Ranjeet
> 
> 



More information about the Python-list mailing list