#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    330
    Rep Power
    15

    Mixing with other languages


    Hello,

    Is it an unusual or common thing to mix Python with other programming languages, for example with C++? Is this done alot these days? Because I was thinking that the excellent text parsing features of Python and the high speed of C++ make a good combination. Would the mixed program be still as platform independent as Python alone?

    Your feedback is appreciated.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Canada
    Posts
    185
    Rep Power
    0
    check out this documentation for more info. http://docs.python.org/ext/ext.html
    "In theory, there is no difference between theory and practice.
    But, in practice, there is."

  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    You may want to look at Pyrex .
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    Many third party python libraries have a C or C++ component for extra speed, so it is very common. There are also lots of python wrappers round existing C or C++ libraries. Some that spring to mind are Pygame (round the SDL library), wxPython (wxWidgets), OmniORBPy etc.

    Dave - The Developers' Coach
  8. #5
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    There are also a number of commercial programs that embed the Python interpreter i.e. Poser 4. Quite a few third party modules also take advantage of Pythons C API to improve speed and or make C libraries available in Python programs .

    Take care,

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo