Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any difference between cpython and python [duplicate]

Tags:

python

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?

like image 871
fear_matrix Avatar asked Feb 24 '10 06:02

fear_matrix


People also ask

Is Python and CPython the same?

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 languageitself.

How is CPython different from J Python?

Difference between Python and JythonReference implementation of Python, called CPython, is written in C language. Jython on the other hand is completely written in Java and is a JVM implementation. Standard Python is available on multiple platforms. Jython is available for any platform with a JVM installed on it.

Is CPython written in C or Python?

CPython is the reference implementation of the Python programming language. Written in C and Python, CPython is the default and most widely used implementation of the Python language. CPython can be defined as both an interpreter and a compiler as it compiles Python code into bytecode before interpreting it.

Is CPython and Cython the same?

CPython is the implementation of the language called “Python” in C. Python is an interpreted programming language. Hence, Python programmers need interpreters to convert Python code into machine code. Whereas Cython is a compiled programming language.


1 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.

like image 195
kennytm Avatar answered Sep 22 '22 08:09

kennytm