Skip to content

Glossary: Refactoring and Clean Code

lambda

A short, unnamed Python function written on one line. In tests it is handy as a fake such as a `send_email` that records addresses in a list instead of sending.

Where the book teaches it

Related terms

monkeypatch