← All terms · Standard library
pathlib.Path
Object-oriented filesystem paths. `Path(".").rglob("*.py")` beats `os.walk + os.path.join`.
Learn this interactively:
Open lesson lesson-126 →Related — Standard library
collections.CounterDict subclass that counts hashable items: `Counter("hello")` → `{'l': 2, ...}`.itertoolsIterator building blocks — `chain`, `groupby`, `combinations`, `accumulate`. Laz…functools.cacheMemoize a pure function with `@functools.cache`. Replaces hand-rolled dict cachi…dataclasses.fieldConfigure a dataclass attribute — mutable defaults, init/repr behavior. Use `fie…collections.defaultdictDict that auto-creates missing keys with a factory: `defaultdict(list)` returns …