Paul F. Dubois
Wed, 12 Jan 00 07:29:46 GMT

Pyfort 3.0, the Python-Fortran connection tool, is available at
Documentation is included.


Pyfort uses Distutils (  both to install
itself and to build and install extensions built with Pyfort.

There are many new features to control the behavior of the tool, including
provisions for optional automatic transposing, reversed-shape Fortran
arrays, and valued scalars.

A valued scalar is an integer argument to a Fortran routine that determines
all or part of the shape of another argument. This fact can now be declared
in the input. For example, if Fortran routine foo has arguments foo (n, x),
where x is a real array of length n, you have the option to declare this as:

subroutine foo (n, x)
    integer n = size(x)
    real x(n)

(size is the F90 intrinsic, and can take a second argument to indicate the
dimension if x has more than one)

Then the Python user would call foo as foo(x), and not need to specifiy the
redundant information that n is x's length.

Some persons do not want any of the features mentioned. They may rest
assured that declaring all arguments intent(inout) will result in what some
have called a "raw" interface.


<P><A HREF="">Pyfort 3.0</A> -
Fortran/Python Connection Tool.  (11-Jan-2000)

----------- comp.lang.python.announce (moderated) ----------
Article Submission Address:
Python Language Home Page:
Python Quick Help Index: