Home  >  Article  >  Backend Development  >  What is the underlying language of Python?

What is the underlying language of Python?

anonymity
anonymityOriginal
2019-05-05 18:05:0716580browse

The founder of Python is Guido van Rossum. During the Christmas period of 1989, in Assam, Guido decided to develop a new script interpreter as an inheritance of the ABC language in order to kill the boredom of Christmas. The reason why Python (meaning Python) was chosen as the name of the programming language was because he was a fan of a comedy group called Monty Python.

What is the underlying language of Python?

Most high-level languages ​​are developed on the basis of C language, such as Python, Java, C#...etc.;

C vs Python, Java, C#, etc.:

C language: The code is compiled to obtain machine code. The machine code is directly executed on the processor. Each instruction controls the CPU work;

Other languages : The code is compiled to obtain bytecode, the virtual machine executes the bytecode and converts it into machine code and then executes it on the processor;

Python is also called C Python is developed from the C language:

For use: Python’s class library is complete and simple to use. If you want to achieve the same function, Python can solve it with 10 lines of code, while C may require 100 lines or more.
For speed: Python’s running speed is compared with C is slower and not as fast as C;

Python vs Java, C#, etc.:

For use: Linux original Python, other languages ​​​​are not available; the above languages ​​​​are very rich Class library support;
For speed: Python may be slightly inferior in speed;

What is the underlying language of Python?

CPython
The official version of Python is implemented in C language, using The most widespread, CPython implementation converts source files (py files) into bytecode files (pyc files), and then runs them on the Python virtual machine.

JPyhton
Java implementation of Python, Jython will dynamically compile Python code into Java bytecode, and then run on the JVM.

IronPython
A C# implementation of Python, IronPython compiles Python code into C# bytecode and then runs it on the CLR. (Similar to Jython)

PyPy (Special)
Python implemented by Python converts Python code into bytecode and then compiles it into machine code. The advantage is that when the code is executed for the second time, the code is directly converted into machine code and handed over to the computer for execution. RubyPython, Brython...

The above is the detailed content of What is the underlying language of Python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn