Quality Learning Support For Better Outcomes
First time here? Checkout the FAQs!
x
MathsGee is Zero-Rated (You do not need data to access) on: Telkom |Dimension Data | Rain | MWEB

0 like 0 dislike
27 views
Explain the usage of decorators.
in Data Science & Statistics by Bronze Status (8,638 points) | 27 views

1 Answer

0 like 0 dislike
Decorators are used:

1.     For extending the behavior of functions, or injecting code in functions or sub-classes.

2.    For adding responsibilities to individual object dynamically without affecting other objects.

3.    For responsibilities that can be withdrawn.

4.    When extension by sub-classing is impractical.

5.    For checking permissions, modifying or tracking the arguments passed to a method, logging the calls to a specific method.
by Diamond (40,336 points)

Related questions

1 like 0 dislike
1 answer
0 like 0 dislike
0 answers
asked Mar 11, 2019 in Data Science & Statistics by Edzai Zvobwo Bronze Status (8,638 points) | 65 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
0 answers
0 like 0 dislike
0 answers

Join the MathsGee Answer Hub community and get study support for success - MathsGee Answer Hub provides answers to subject-specific educational questions for improved outcomes.



On MathsGee Answers, you can:


  1. Ask questions
  2. Answer questions
  3. Comment on Answers
  4. Vote on Questions and Answers
  5. Donate to your favourite users
  6. Create/Take Live Video Lessons

Posting on MathsGee


  1. Remember the human
  2. Behave like you would in real life
  3. Look for the original source of content
  4. Search for duplicates before posting
  5. Read the community's rules
MathsGee Tools

Math Worksheet Generator

Math Algebra Solver

Trigonometry Simulations

Vectors Simulations

Matrix Arithmetic Simulations

Matrix Transformations Simulations

Quadratic Equations Simulations

Probability & Statistics Simulations

PHET Simulations

Visual Statistics

MathsGee ZOOM | eBook