Python is a commonly used computer language in computer languages and has been widely accepted and used. There are also some related books about Python. But do you have any knowledge about the application solutions related to Python source code analysis? If you have a better understanding, you can click the following article.
Python is a dynamic scripting language. I will not introduce it much. The source code link is here: After Python 2.5 is downloaded, decompress it directly and you can see the following directory structure:
- Demo code, mainly used to demonstrate some Python applications
- Doc Python UserManual. Latex format
- Grammar syntax file. This syntax file will be run in Python
Used to analyze Python source code
- Include header files for Python Include
- Library file of Lib Python
- Mac For Mac
- If Misc is literal, put some files that are not suitable for other places here.
- Advantages of the Python Programming Language
- How to efficiently complete the work in the Python Library
- Use the Python programming language design philosophy to solve the disadvantages of Programming
- Steps for organizing Python source code
- It is easy to install Python.
- Implementation of some Built-in Modules Python
- Implementation of basic internal Objects of Objects Python, such as class/list
- Parser Python lexical analysis and syntax analysis
- The old Windows and OS2 Port projects and ports in the PC are used
Some public files are put here, and the contents of this directory must be used in both PCBuild and PCBuild8.
- PCBuild Python for VS 2003 Project files
- PCbuild8 Python is used for VS 2005 Project files
- Python main program code
- RISCOS Python-based Proteus OS Port
Tools Required by Tools Build and Extend Python in Python source code analysis
In Unix/Linux/Cywin, you can directly type:
- ./configure
- make install
If you use VC Build for Windows, you can directly open the corresponding Solution under PCBuild/PCBuild8 to Build. If you Build directly, there will be a lot of errors, and some adjustments are necessary: not all projects can be built immediately, some projects are dependent on third-party libraries, generally, you can skip building these projects directly, but only Build the core Python code. You can use Exclude in Configuration Manager. The required Project is:
- make_buildinfo, make_versioninfo, python,
pythoncore
One PythoncoreProject file is missing. You need to manually set Modules \ _ typesmodule. c is added to the project, and the Build will be written here today. In the next article, I will introduce the Python execution process by tracking and executing the simplest Python code. The above content is related to the Python source code analysis.