0

What is the difference between python and cpython

python and cpython

15th May 2018, 5:54 AM
Rudransh Sharma
2 Answers
+ 2
CPython is the original Python implementation. It is the implementation you download from Python.org. People call it CPython to distinguish it from other, later, Python implementations, and to distinguish the implementation of the language engine from the Python programming language itself. The latter part is where your confusion comes from; you need to keep Python-the-language separate from whatever runs the Python code. CPython happens to be implemented in C. That is just an implementation detail, really. CPython compiles your Python code into bytecode (transparently) and interprets that bytecode in a evaluation loop. CPython is also the first to implement new features; Python-the-language development uses CPython as the base; other implementations follow. [stackoverflow https://stackoverflow.com/questions/17130975/python-vs-cpython ]
15th May 2018, 6:00 AM
᠌᠌Code X
᠌᠌Code X - avatar
0
Copy what Brains said. Additionally there are tools to convert Python-the-language back to CPython. In many cases, that can improve speed of code execution. Here is Tutorial I liked: https://m.youtube.com/watch?v=mXuEoqK4bEc
15th May 2018, 7:15 AM
Marco Polidori
Marco Polidori - avatar