Python/Fortran interoperability
nmm1 at cam.ac.uk
nmm1 at cam.ac.uk
Mon Aug 24 12:20:23 EDT 2009
In article <e0a956ea-ab2a-4651-809d-ee76b11a6314 at b15g2000yqd.googlegroups.com>,
sturlamolden <sturlamolden at yahoo.no> 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".
Regards,
Nick Maclaren.
More information about the Python-list
mailing list