Python Decorators — 5 Advanced Features to Know

Take advantage of Python decorators in your project

Yong Cui
Better Programming
Published in
5 min readSep 9, 2020

--

Photo by Mantas Hesthaven on Unsplash.

Decorators are functions that modify other functions’ behaviors without changing their core operations. As indicated by the name, decorators only decorate other functions. You can think of other functions as plain donuts, and what decorators do is apply different coatings to the donuts. No matter…

--

--

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).