Base language of Python

Python

Python Problem Overview


What is the base language Python is written in?

Python Solutions


Solution 1 - Python

You can't say that Python is written in some programming language, since Python as a language is just a set of rules (like syntax rules, or descriptions of standard functionality). So we might say, that it is written in English :). However, mentioned rules can be implemented in some programming language. Hence, if you send a string like 'import this' to that program called interpreter, it'd return you "Zen of Python".

Since most modern OS are written in C, compilers/interpreters for modern high-level languages are also written in C. Python is not an exception - its most popular/"traditional" implementation is called CPython and is written in C.

There are other implementations:

  • IronPython (Python running on .NET)
  • Jython (Python running on the Java Virtual Machine)
  • PyPy (A fast python implementation with a JIT compiler)
  • Stackless Python (Branch of CPython supporting microthreads)

Solution 2 - Python

The sources are public. Python is written in C (actually the default implementation is called CPython).

Solution 3 - Python

Python is written in English. But there are several implementations:

Solution 4 - Python

it is written in C, its also called CPython.

Solution 5 - Python

You get a good idea if you compile python from source. Usually it's gcc that compiles the *.c files

Solution 6 - Python

To add to and reframe some of the other good answers:

The specification for Python (question) is written in English, but could be written in a formal semantics, as Standard ML and Scheme are. See Programming language specification.

There are implementations of Python in many languages, as noted by Gandaro, of which the fastest is surprisingly not the original CPython, which is written in C.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDewsworldView Question on Stackoverflow
Solution 1 - PythonRoman BodnarchukView Answer on Stackoverflow
Solution 2 - PythonwRARView Answer on Stackoverflow
Solution 3 - PythonGandaroView Answer on Stackoverflow
Solution 4 - PythonneizodView Answer on Stackoverflow
Solution 5 - Pythonuser2489252View Answer on Stackoverflow
Solution 6 - PythonnealmcbView Answer on Stackoverflow