How gvanrossum/cpython works
CPython is the Python interpreter and its standard library. The main executable initializes the runtime and dispatches module execution; the standard library supplies language-adjacent and application capabilities. The graph includes substantial core modules named by the source index, but not every library module. Evidence is limited to the README, source-index references, and shown excerpts: arrows are included only where those sources identify a caller or documented entry point.
Main entry points: managers.py Shared objects · server.py XML-RPC server · main.c Interpreter entry · traceback.py Tracebacks
Components 22
Interpreter runtime
- Interpreter entry
Modules/main.c - Module execution
Lib/runpy.py
C interfaces
- Public C API
Include/Python.h - Integer internals
Include/internal/pycore_long.h
Standard library
- CLI parsing
Lib/argparse.py - Email messages
Lib/email/message.py - Email content
Lib/email/contentmanager.py - HTTP client
Lib/http/client.py - HTTP server
Lib/http/server.py - Object inspection
Lib/inspect.py - Operating system
Lib/os.py - Object serialization
Lib/pickle.py - Documentation tools
Lib/pydoc.py - File utilities
Lib/shutil.py - Tracebacks
Lib/traceback.py - Type annotations
Lib/typing.py - Test runner
Lib/unittest/main.py
Concurrency and networking
- Thread queues
Lib/queue.py - Threading
Lib/threading.py - Shared objects
Lib/multiprocessing/managers.py - XML-RPC server
Lib/xmlrpc/server.py
Other components
- Python user
Connections 12
- Python user → Interpreter entry: starts interpreter
README.rst - Interpreter entry → Module execution: runs module
Modules/main.c - Email content → Email messages: reads and updates
Lib/email/contentmanager.py - Test runner → CLI parsing: parses options
Lib/unittest/main.py - Shared objects → Operating system: uses OS services
Lib/multiprocessing/managers.py - Shared objects → Tracebacks: uses tracebacks
Lib/multiprocessing/managers.py - Shared objects → Thread queues: uses queues
Lib/multiprocessing/managers.py - Shared objects → Threading: uses threads
Lib/multiprocessing/managers.py - XML-RPC server → HTTP server: serves over HTTP
Lib/xmlrpc/server.py - XML-RPC server → Object inspection: uses inspection
Lib/xmlrpc/server.py - XML-RPC server → Documentation tools: uses documentation
Lib/xmlrpc/server.py - XML-RPC server → Tracebacks: uses tracebacks
Lib/xmlrpc/server.py