Source code Structure-python Source code structure
The Include directory contains all of the header files provided by Python, and if the user needs to write a custom module extension python in C or C + +,
Then you need to use the header file provided here.
The Lib directory contains all the standard libraries that Python comes with, and the libraries are written in Python.
The Moudles directory contains all of the modules written in C, which are very demanding for speed, such as random, Cstringio, etc.
However, some modules that are not very fast, such as the OS, are written in Python and are divided into the Lib directory.
The Parser directory contains the Scanner and Parser parts of the Python interpreter, the part of lexical parsing and parsing of the Python source code.
In addition, some tools are included in the Parser directory to automatically generate Python's lexical and parser based on Python syntax.
The Objects directory contains all of the Python's built-in objects, such as integers, lists, dict, and so on.
There is also the implementation of all the internal use objects that Python needs at run time.
The Python directory contains the Compiler and execution engine parts of the Python interpreter, which is the core of Python's operation.
The Pcbuild directory contains the project files for Visual Studio, which are used when compiling Python.
Source code Structure-python Source code structure