Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Latest commit

 

History

History

adv_lesson4

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Python Decorators

Ch1 Functions

  • Inner functions - functions defined inside another function
    • A.k.a nested functions
  • For encapsulation
  • Creating and returning new function

Ch2 Decorators

  • Adds more functionality to a function
    • Wrapper functions
      • def wrapper()
        • Include params for function to be decorated
    • Add @custom_decorator(params) above the function to decorate