CPython
CPython is the reference implementation of the Python programming language, written primarily in C and providing its interpreter and runtime.
Fast Python: High performance techniques for large datasets
- How it is used
- Uses CPython as the default implementation for examining Python data-processing performance, memory use, and threading limits.
- How deep it goes
- Explains the GIL’s threading constraint and probes memory estimates, but does not provide a complete analysis of CPython’s performance.
- Examples
- Uses timed matrix multiplication across implementations and `sys.getsizeof` measurements of data containers.
- What you can do after
- Diagnose/debug with it by checking whether interpreter execution, the GIL, or misleading memory estimates affect a performance decision.
Read how Fast Python: High performance techniques for large datasets explains CPython →
Python Concurrency with asyncio
The standard reference implementation of the Python programming language, written primarily in C.
- How it is used
- Frames CPython as the runtime constraint for understanding Python threading performance and shared-state safety.
- How deep it goes
- Explains reference counting, the GIL, race conditions, and timing evidence, but stops short of implementation-level internals.
- Examples
- Uses recursive Fibonacci timing and a reference-count race condition to demonstrate concurrency limits.
- What you can do after
- Evaluate/understand: Compare sequential and threaded CPU-bound work and recognize when multiprocessing is relevant.
Related concepts
- Pythonimplements · Python is a high-level, general-purpose, dynamically typed programming language known for readable syntax and automatic memory management.
- interpreterkind of · An interpreter is software that executes or evaluates source code or another program representation according to its defined semantics.
- reference implementationkind of · A reference implementation is a clear, correctness-oriented implementation that demonstrates intended behavior and provides a basis for validating other implementations.
- reference countinguses · Reference counting is a memory-management technique that tracks references to an object or value and can reclaim it when its reference count reaches zero.
- global interpreter lockhas part · The global interpreter lock is a mutual-exclusion mechanism in CPython that permits only one thread at a time to execute Python bytecode within a process.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

