DEV Community

Cover image for Decorators in Python: What you need to know

Decorators in Python: What you need to know

Timber Staff on August 10, 2018

Python decorators are a powerful concept that allow you to "wrap" a function with another function. The idea of a decorator is to abstract away so...
Collapse
 
daveclarke profile image
daveclarke

Wow, a sponsored post that actually contains useful content. Awesome!

Collapse
 
epogrebnyak profile image
Evgeny Pogrebnyak

An unexpected side effect to decorators for was that adfing a decorator somehow cancelled rendering a functions's docstring in sphinx documentation. That is still a
FIXME for me.

Collapse
 
isas1 profile image
Mr.I

Incredibly useful, detailed and clear content - thank you!
Will be handy for my students :)

Collapse
 
kip13 profile image
kip

Good !

Collapse
 
nabbisen profile image
nabbisen

Nice code/output examples.
I read your post and I understood about Python decorator better than ever.
Thank you : )