Source code Structure-python Source code structure

Source: Internet
Author: User





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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.