mathspp blog

424 454,322 37,809
articles words lines of code

Learn how to use functools.Placeholder, new in Python 3.14, with real-life examples.

This article teaches the decorator pattern in Python, why it exists, how to use it, and when to use it to write efficient and idiomatic Python code.

This article teaches you how to use functools.partial, how it works, and when to use it, with clear examples.

In this Pydon't we will take a look at the reduce function, which used to be a built-in function and is currently in the functools module.