β 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β¦