stdlib

Guides to the Python standard library and its most useful built-in modules.

Python: Logging Levels, Handlers, Formatters

Python logging, explained the simple way: understand log levels, configure handlers and formatters, send logs to both a file and the console, rotate files so they never fill the disk, and pick up the patterns that move you from amateur print() debugging to the real thing. “Adding manpower to a late software project makes it later.” Fred Brooks, The Mythical Man-Month Last Updated: July 2026 | Tested on: Python 3.14.6 | Difficulty: Intermediate | Reading Time: 15 minutes You are ... Read More

Python: Collections Module (Counter, defaultdict, deque, namedtuple)

The complete Python collections module reference: Counter, defaultdict, deque, and namedtuple with tested examples and performance notes, plus quick guidance on OrderedDict and ChainMap, and a clear signal for when to reach for each one instead of the built-in types. “Program testing can be used to show the presence of bugs, but never to show their absence!” Edsger Dijkstra, Notes on Structured Programming Last Updated: July 2026 | Tested on: Python 3.14.6 | Difficulty: Intermediate | Reading Time: 14 minutes ... Read More

Python: Regular Expressions, Patterns, Groups, Lookaheads

This is the complete Python regex reference: every pattern syntax, character class, quantifier, group type, lookaround, and re module method for regular expressions in Python, each with a tested example. It is the cheat sheet you bookmark and keep coming back to. “Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.” Jamie Zawinski Last Updated: July 2026 | Tested on: Python 3.14.6 | Difficulty: Intermediate | Reading Time: 13 minutes ... Read More