Skip to content

Glossary: Algorithms Beyond the Basics

Decorator

Also written: decorators

A function that takes your function and hands back a changed version of it. You apply it by writing `@name` on the line above `def`.

Where the book teaches it

Related terms

@cache