Learn Python Decorators

Requirements

  • Basic knowledge of Python programming language

Description

In this course, you will learn all about decorators and how to develop decorators in Python.

Decorators allow you to make simple modifications to callable objects like functions, methods, or classes.. Decorators are very powerful and useful tool in Python since it allows programmers to modify the behavior of function or class. Decorators allow us to wrap another function in order to extend the behavior of the wrapped function, without permanently modifying it.

A decorator is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its structure. Decorators are usually called before the definition of a function you want to decorate.

In this course, you will learn what decorators are and why they are used so extensively in production projects. We’ll get into how to solve common challenges associated with decorators, such as debugging; how to chain decorators; how to use decorators with classes; and how to access the arguments passed into decorated functions.

Plus, find out how to use and debug decorators in the real world by examining decorators’ role in the source code.

By the end of this course you will have a solid understanding of how to use Python decorators.

Who this course is for:

  • Developers
  • Programmers


Pin It on Pinterest