CPython is the python that is specifically implemented in C, which is the original python.
The word cpython is used because Python has other implementations, such as Jython, the Java version of Python, and the brain-burning pypy, which is also implemented using Python.
The following is an official description of CPython:
CPython is Guido van Rossum ' s reference version of the Python computing language. It ' s most often called simply "Python"; Speakers say "CPython" generally to distinguish it explicitly from the other implementations.
This page has a description of various implementations of Python:
Https://wiki.python.org/moin/PythonImplementations?action=show&redirect=implementation
When we write Python code, we get a text file with a. py extension that contains the Python code. To run the code, you need the Python interpreter to execute the. py file.
Since the entire Python language is open source from spec to interpreter, theoretically, anyone can write a Python interpreter to execute Python code (of course it's very difficult) as long as the level is high enough. Indeed, there are many Python interpreters.
CPython
When we downloaded and installed Python 3.5 from the official Python website, we got an official version of the interpreter: CPython. This interpreter is developed in C language, so it is called CPython. Running Python at the command line is the start of the CPython interpreter.
CPython is the most widely used Python interpreter. All the code for the tutorial is also executed under CPython.
IPython
Ipython is an interactive interpreter based on CPython, that is, Ipython is only enhanced interactively, but the function of executing Python code is exactly the same as that of CPython. Like many domestic browsers although the appearance of different, but the kernel is actually called ie.
CPython with >>> as a prompt, and ipython with in [ordinal]: as prompt.
PyPy
PyPy is another Python interpreter, and its goal is execution speed. PyPy uses JIT technology to dynamically compile Python code (note is not interpreted), so it can significantly improve the execution speed of Python code.
Most python code can be run under PyPy, but PyPy and CPython are different, which results in the same Python code being executed under two different interpreters. If your code is to be executed under PyPy, you need to understand the differences between PyPy and CPython.
Jython
Jython is a Python interpreter running on the Java platform that can compile Python code into Java bytecode execution directly.
IronPython
IronPython is similar to Jython, except that IronPython is a Python interpreter running on the Microsoft. NET platform that compiles Python code into a. NET byte code directly.