what_is_python_written_in

What is Python written in?

Return to Python articles

“The simple answer is that the Python interpreter, preinstalled on macOS and most Linux distros, and that is what runs when you type “python” at a command shell prompt, is written in C.

“The slightly more complicated answer is that just a Python interpreter by itself is almost useless without also the Python standard library, and the commonly used installed libraries. Those libraries are written mostly in Python itself, with some performance critical sections written in C.”

“The even more complicated answer is that in addition to ”C Python”, there are at least 4 other implementations of the Python Language: JPython, which is written in Java to run on the JVM, Iron Python which is written in C# to run on the .NET CLR, Stackless Python which is written in C and architected to use thread based parallelism, and PyPy, which is itself recursively written in Python and is a JIT-style native compiler. Hilariously, sometimes PyPy is actually faster at executing a given Python program than the “C Python” interpreter is.“

Fair Use Source: https://www.quora.com/What-is-Python-written-in

what_is_python_written_in.txt · Last modified: 2024/05/01 04:06 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki