0% found this document useful (0 votes)
46 views77 pages

Cpython Internals Sample Chapters

The document describes the directory structure and files that make up the CPython source code. It includes directories for the core interpreter code, documentation, standard library modules, build support files, and more. Key files and directories include Python/ for the core interpreter, Lib/ for standard library modules, Tools/ for build utilities, and Doc/reference/ for language documentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views77 pages

Cpython Internals Sample Chapters

The document describes the directory structure and files that make up the CPython source code. It includes directories for the core interpreter code, documentation, standard library modules, build support files, and more. Key files and directories include Python/ for the core interpreter, Lib/ for standard library modules, Tools/ for build utilities, and Doc/reference/ for language documentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

cpython/

Doc Source for the documentation


Grammar The computer-readable language definition
Include The C header files
Lib Standard library modules written in Python
Mac macOS support files
Misc Miscellaneous files
Modules Standard library modules written in C
Objects Core types and the object model
Parser The Python parser source code
PC Windows build suppport files for older versions of Windows
PCBuild Windows build support files
Programs Source code for the ‘python’ executable and other binaries
Python The CPython interpreter source code
Tools Standalone tools useful for building or extending CPython
m4 Custom scripts to automate configuration of the makefile
cpython/Doc/reference

compound_stmts.rst Compound statements like if, while, for and function definitions
[Link] Objects, values and types
[Link] The structure of Python programs
[Link] The elements of Python expressions
[Link] Python’s core grammar (referencing Grammar/Grammar)
[Link] The import system
[Link] Index for the language reference
[Link] Introduction to the reference documentation
lexical_analysis.rst Lexical structure like lines, indentation, tokens and keywords
simple_stmts.rst Simple statements like assert, import, return and yield
toplevel_components.rst Description of the ways to execute Python, like scripts and modules
cup espresso water full-fat

< skimmed

soy
with test as expr , test as expr : suite

<

try : suite except test as NAME : suite else : suite finally : suite

<
finally : suite
@ dotted_name ( arglist ) NEWLINE
pass

pass

proceed

You might also like