pythonpython-bindings

Why are Python bindings developed for existing code in other languages such as C?


What is the motive behind developing Python bindings for existing code in other languages? I see many programmers developing Python bindings for their existing C code. Why? How does it help?


Solution

  • Python has bindings in C, because C is a low-level language that can be very fast and effective, while providing support for a huge amount of hardware and software capabilities. C is very difficult for beginners and inherently lacks object-oriented features, which Python improves upon. C's lack of object-oriented behaviour also contributed to the creation of C++.

    Frequently, software projects are bounded by the speed of the developer and not the execution speed of the code, where Python excels over C, in most cases.

    Python's strengths over C include:

    http://www.python.org/about/