Decorators
Confused about what decorators are, how they work, and how to use them?
What you should know
Course Content
Course length
2.5 hours
Number of lessons
1
Training materials
Jupyter notebook
Coding exercises
5
About the Course
Decorators are one of Python’s most powerful tools — but they’re also confusing to many people. In this class, I’ll try to demystify them, showing you how decorators work, and how we can use them in a wide variety of cases. You’ll come away finally “getting” decorators, from the simplest to the most complex.
This is a recording of a webinar I gave in September 2024. It includes exercises, as well as many demos.
What you’ll learn
- Why do we want decorators?
- What does the @ syntax really mean (and do)?
- How do we write a decorator?
- How do we write a decorator that takes an argument?
- What are some examples of how to use a decorator?
- How can we use decorators to check and modify function arguments?
- How can we use decorators to check and modify function return values?
Instructor
As with all courses on LernerPython.com, this class is taught by Reuven Lerner.
Pricing
100% Money Back Guarantee
I’m a one-person company dedicatedto improving your career via Python and related technologies. If you haven’t gotten value from any of my courses, then just tell me — and I’ll refund your money.
LernerPython
$40
per user / month
- Unlimited access to all Python, Git, Regexp courses
- Members-only forums
- Python office hours, private lectures
LernerPython + Data
$50
per user / month
- Everything in Lerner Python Level
- Unlimited access to NumPy, Pandas, and SQL courses
- Pandas office hours and private lectures
- Bamboo Weekly Subscription ($100 Annual Value)
LernerPython
$400
per user / year
- Unlimited access to all Python, Git, Regexp courses
- Members-only forums
- Python office hours, private lectures
LernerPython + Data
$500
per user / year
- Everything in Lerner Python Level
- Unlimited access to NumPy, Pandas, and SQL courses
- Pandas office hours and private lectures
- Bamboo Weekly Subscription ($100 Annual Value)