Making a well-behaved decorator PREMIUM

Series: Decorators
Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
4 minute read Python 3.7—3.10

What makes a decorator well-behaved?

Decorated function lose their documentation

We have a function here called is_prime:

...

A Python Tip Every Week

Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.