Python/Fortran interoperability

nmm1 at nmm1 at
Mon Aug 24 18:20:23 CEST 2009

In article <e0a956ea-ab2a-4651-809d-ee76b11a6314 at>,
sturlamolden  <sturlamolden at> wrote:
>You also made this claim regarding Fortran's C interop with strings:
>"No, I mean things like 'Kilroy was here'.  Currently, Fortran's C
>interoperability supports only strings of length 1, and you have
>to kludge them up as arrays.  That doesn't work very well, especially
>for things like function results."
>This obviosuly proves you wrong:

Er, no, it doesn't.  I suggest that you read what I said more
carefully - and the Fortran standard.  As I said, you can kludge
them up, and that is precisely one such kludge - but, as I also
said, it doesn't work very well.

However, I shall take your answer as a "yes, I want to do that".

Nick Maclaren.

More information about the Python-list mailing list