Decorators allow programmers to modify the functionality of an object without permanently modifying the object’s structure. This course will teach you how to create and use decorators in Python.
Decorators allow programmers to modify the functionality of an object without permanently modifying the object’s structure. This course will teach you how to create and use decorators in Python.
Decorator pattern in Python allows you to add new functionality to an object by wrapping it in another function. In this course, Python 3 Decorators, you’ll learn what decorators are and how to use them in your projects. First, you’ll explore functions as first-class objects in Python. This will allow us to learn about higher order functions, inner functions and closures. All of these concepts are necessary for us to understand how decorators work in Python. Next, you’ll discover how to create and use your own decorators with Python's special syntax. Once we know the basics of decorators, we will learn how to stack them and how to create decorators with arguments. Finally, you’ll learn how to create decorators for classes and how to use classes instead of functions to create decorators. When you’re finished with this course, you’ll have the skills and knowledge of Python 3 Decorators needed to create and use decorators to make your applications more flexible.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.