I want to know the difference between CPython and Python because I have heard Python is developed in C - then what is the use of CPython?
-
Is there anything that can be done to change the text of the duplication mark. The linked question and its answers are without any doubt more informative, but this question was asked more than 3 years earlier. That's why “This question already has answers here” (emphases mine) is misleading. I read this comment on meta that there is a way. Can someone please help me figure out how to do it?– WolfFeb 13 at 9:50
2 Answers
Python is a language.
CPython is the default byte-code interpreter of Python, which is written in C.
There is also other implementation of Python such as IronPython (for .NET), Jython (for Java), etc.
-
thx !! I understand CPython is default byte-code interpreter for Python. But who takes care of converting Python to byte-code in first place ? Nov 1, 2018 at 14:40
-
@RahulAgarwal Also CPython. The *.pyc bytecode format is specific to CPython. Other implementations could use other bytecode formats.– kennytmNov 1, 2018 at 17:10
-
ohk, got it. so this means IronPython for example converts python to msil, right? Nov 1, 2018 at 23:24
-
-
1@RahulAgarwal Yes. You may find details about the Compiler in devguide.python.org/compiler, and the bytecode interpreter is explained in stackoverflow.com/questions/19916729/….– kennytmNov 2, 2018 at 14:29
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 other implementations.