There was an add-on to the GNU C compiler for FORTRAN77 at one time (g77). I don't know if it is still available to how well it works though. Jeff
________________________________ From: tutor-bounces+jsmith=medplus....@python.org [mailto:tutor-bounces+jsmith=medplus....@python.org] On Behalf Of Wayne Watson Sent: Friday, January 16, 2009 2:03 PM To: greg whittier Cc: tutor@python.org Subject: Re: [Tutor] Translating FORTRAN (77?) to Python? That is interesting. I'll pursue it. Thanks. Of course, at the moment, I have no F77 compiler, so I can't even execute or use the code. Is there a freebie F77 compiler out there? greg whittier wrote: There's an absolutely incredible project call f2py http://cens.ioc.ee/projects/f2py2e/ that I've used before. It doesn't translate the code, but wraps it (which is actually better) and lets you import your library as a module. It even generates docstrings so you can see how to call the functions. On Fri, Jan 16, 2009 at 11:40 AM, Wayne Watson <sierra_mtnv...@sbcglobal.net> <mailto:sierra_mtnv...@sbcglobal.net> wrote: I may have a need down the line to convert a large number of lines of FORTRAN code to Python. Is there a good translator available to do this? In the past, I've found some for translating Pascal to C, and possibly others. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "The creation of the world did not occur at the beginning of time; it occurs every day." -- M. Proust Web Page: <www.speckledwithstars.net/> _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "The creation of the world did not occur at the beginning of time; it occurs every day." -- M. Proust Web Page: <www.speckledwithstars.net/> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmas...@medplus.com). After replying, please erase it from your computer system.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor