Home > Backend Development > Python Tutorial > What language is python written in?

What language is python written in?

little bottle
Release: 2022-03-24 15:53:42
Original
71716 people have browsed it

Python is written in C language. Python is an object-oriented dynamically typed language. Its bottom layer is written in C language. Many standard libraries and third-party libraries are also written in C language. The Python interpreter is easy to expand and can use C language or C ( or other languages ​​callable from C) extend new functionality and data types.

What language is python written in?

The operating environment of this tutorial: Windows 7 system, Python 3.9.1, DELL G3 computer.

Python is written in C language.

Python was designed in the early 1990s by Guido van Rossum of the Dutch Society for Mathematics and Computer Science as a replacement for a language called ABC. Python provides efficient high-level data structures and enables simple and effective object-oriented programming. Python's syntax and dynamic typing, as well as the nature of an interpreted language, make it a programming language for scripting and rapid application development on most platforms. With the continuous update of the version and the addition of new language features, it is gradually used for independent, large-scale Project development.

The bottom layer of Python is written in C language. Many standard libraries and third-party libraries are also written in C and run very fast.

The Python interpreter is easily extensible and can be extended with new functions and data types using the C language or C (or other languages ​​that can be called through C). Python can also be used as an extension programming language in customizable software. Python's rich standard library provides source code or machine code suitable for each major system platform.

Python itself is designed to be extensible. Not all features and functionality are integrated into the language core. Python provides a wealth of APIs and tools so that programmers can easily use C language, C, and Cython to write expansion modules. The Python compiler itself can also be integrated into other programs that require a scripting language. Therefore, many people also use Python as a "glue language". Use Python to integrate and encapsulate programs written in other languages. Many projects within Google, such as Google Engine, use C to write parts with extremely high performance requirements, and then use Python or Java/Go to call the corresponding modules. Alex Martelli, author of "Python Technical Manual" said: "It's hard to say, but in 2004, Python was already used internally at Google. Google recruited many Python experts, but it had already decided to use Python before that. , their purpose is Python where we can, C where we must, use C when controlling hardware, and use Python during rapid development."

You can embed Python into C/C programs to provide program users with Provides scripting functionality.

Have you raised your interest in learning? Then go to the Python video tutorial on the PHP Chinese website to learn more!

The above is the detailed content of What language is python written in?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template