Languages & Runtimes
Python
Python from idioms to internals: the data model and dunder methods, how CPython compiles to bytecode, reference counting and the GIL, iterators and generators, decorators, context managers, asyncio and typing.
3 modules 10 lessons ~1 h of reading
Start learning
0/10 completed
01
The Language
5 lessons- 1Python BasicsPython's core syntax and semantics — running code, names and objects, dynamic typing, numbers and strings, control flow, functions, comprehensions, truthiness, exceptions, and the Pythonic style.beginner2 min
- 2Python Data StructuresLists, tuples, dicts and sets in depth — internals and time complexity, copying, the collections module (deque, Counter, defaultdict, OrderedDict, namedtuple), heapq, bisect, and dataclasses.intermediate3 min
- 3Functions & DecoratorsFirst-class functions, parameter kinds (positional-only, keyword-only, *args, **kwargs), scope and the LEGB rule, closures and nonlocal, decorators with and without arguments, functools (wraps, cache, partial), and context managers.intermediate2 min
- 4OOP & the Data ModelClasses in Python — instances and class attributes, methods (instance, class, static), properties, inheritance and the MRO, super(), dunder methods that make objects behave like built-ins, descriptors, slots, ABCs, and metaclasses.intermediate3 min
- 5Iterators & GeneratorsThe iteration protocol, iterables vs iterators, writing generators with yield, generator expressions, lazy pipelines, yield from, send/close, itertools recipes, and generator-based context managers.intermediate3 min
02
Internals
2 lessons- 6CPython InternalsHow the reference Python implementation runs your code — compilation to bytecode, the dis module, the evaluation loop and frames, PyObject and reference counting, small-object caches, the specialising adaptive interpreter, the JIT, and alternative implementations.advanced4 min
- 7Memory & the GILReference counting and the cyclic garbage collector, weak references, memory profiling, the Global Interpreter Lock — why it exists, what it does and doesn't protect, its impact on threads — and the free-threaded (no-GIL) Python builds.advanced5 min
03
Advanced
3 lessons- 8Concurrency & asyncioThreads, processes and async in Python — choosing between threading, multiprocessing and asyncio, concurrent.futures, how the asyncio event loop and coroutines work, tasks and TaskGroups, timeouts, cancellation, and mixing sync and async code.advanced4 min
- 9Type HintsStatic typing in Python — annotations, mypy and pyright, collections and unions, Optional, generics with TypeVar and the 3.12 syntax, Protocols, TypedDict, Literal, Callable, overloads, and runtime validation with Pydantic.intermediate2 min
- 10Packaging & EnvironmentsModules and packages, how imports are resolved, virtual environments, pip and lock files, pyproject.toml, uv and Poetry, building and publishing wheels, project layout, and tooling (ruff, pytest, pre-commit).intermediate3 min