Paasing file name from Python to Fortran DLL

Discussion in 'Python' started by avinrosh, Oct 10, 2007.

  1. avinrosh

    avinrosh

    Joined:
    Oct 10, 2007
    Messages:
    1
    Hello;

    I am using ctypes module in Python to access functions defined in one Fortran DLL file.The functions inside DLL take file names as parameters. Since in Fortran we assign files with unit numbers and that is being passed. In python there is no unit number but the file name. So when the function is being called from Python how the file has to be passed as parameter.
     
    avinrosh, Oct 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Priya
    Replies:
    5
    Views:
    450
    Priya
    Feb 19, 2007
  2. ankisharma@gmail.com

    Paasing global variables to functions

    ankisharma@gmail.com, Jul 28, 2005, in forum: C Programming
    Replies:
    10
    Views:
    605
    William Hughes
    Jul 29, 2005
  3. luis
    Replies:
    2
    Views:
    393
  4. Luna Moon
    Replies:
    9
    Views:
    623
    Guest
    Sep 4, 2007
  5. deadpickle
    Replies:
    1
    Views:
    1,025
    Jens Thoms Toerring
    Nov 7, 2010
Loading...

Share This Page