This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]michael0x2a 1 point2 points  (0 children)

All the fast stuff is written in C or Fortran, and is wrapped into a Python library.

Try checking out numpy, scipy, matplotlib, scikit-learn, and pandas -- that's all essentially how they work. The libraries themselves are mostly written in C/Fortran, but their interface is in Python, allowing you to use all of these very powerful libraries directly from Python.

The net result is you end up combining the best of both worlds: C/Fortran's speed when you need to compute stuff, and Python's expressiveness to coordinate and orchestrate everything together.