calling a dylib in python on OS X

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • robspychala@gmail.com

    #1

    calling a dylib in python on OS X

    Hi

    Is there something similar to python's windll for calling DLLs on win32
    but meant for calling dylib's on OS X?

    thanks,

    r.s.

  • Kevin Walzer

    #2
    Re: calling a dylib in python on OS X

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    robspychala@gma il.com wrote:
    | Hi
    |
    | Is there something similar to python's windll for calling DLLs on win32
    | but meant for calling dylib's on OS X?
    |
    | thanks,
    |
    | r.s.
    |
    Can you be more specific about what you are trying to do/what dylib you
    want to call?


    - --
    Cheers,

    Kevin Walzer, PhD
    WordTech Software - "Tame the Terminal"

    sw at wordtech-software.com
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (Darwin)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFDW8ZmJmd Qs+6YVcoRAvKPAJ 0TUW8hgRN6AOn/nBP1v12kqmLXrQC fc5B1
    uVv3uBAz7I/jO7l/htpuTb0=
    =oXiv
    -----END PGP SIGNATURE-----

    Comment

    • Alex Martelli

      #3
      Re: calling a dylib in python on OS X

      <robspychala@gm ail.com> wrote:
      [color=blue]
      > Hi
      >
      > Is there something similar to python's windll for calling DLLs on win32
      > but meant for calling dylib's on OS X?[/color]

      ctypes should work just fine on Macs, just as well as on Windows and
      Linux machines as well as many other Unix dialects. Try
      http://starship.python.net/crew/theller/ctypes/ ...


      Alex

      Comment

      • Victor Ng

        #4
        Re: calling a dylib in python on OS X

        You can use Pyrex which will generate a C module for you.

        vic

        On 22 Oct 2005 23:40:17 -0700, robspychala@gma il.com
        <robspychala@gm ail.com> wrote:[color=blue]
        > Hi
        >
        > Is there something similar to python's windll for calling DLLs on win32
        > but meant for calling dylib's on OS X?
        >
        > thanks,
        >
        > r.s.
        >
        > --
        > http://mail.python.org/mailman/listinfo/python-list
        >[/color]


        --
        "Never attribute to malice that which can be adequately explained by
        stupidity." - Hanlon's Razor

        Comment

        Working...