MathsGee Answers is Zero-Rated (You do not need data to access) on: Telkom |Dimension Data | Rain | MWEB
First time here? Checkout the FAQs!
x
Institutions: Global | Ekurhuleni Libraries | Joburg Libraries | Tshwane Libraries | Invest in Zim

MathsGee is Zero-Rated (You do not need data to access) on: Telkom |Dimension Data | Rain | MWEB

0 like 0 dislike
25 views
Explain the usage of decorators.
in Data Science by Bronze Status (7,918 points)
32% Accept Rate
| 25 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 (39,212 points)

Related questions

1 like 0 dislike
1 answer
asked Mar 11, 2019 in Data Science by Edzai Zvobwo Bronze Status (7,918 points) | 65 views
0 like 0 dislike
0 answers
0 like 0 dislike
0 answers
asked Mar 11, 2019 in Data Science by Edzai Zvobwo Bronze Status (7,918 points) | 62 views

Welcome to MathsGee Answers, a free online study network where students can ask, answer, and explore 24/7 for improved outcomes.



MathsGee Supporting City of Joburg

Enter your email address:

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

Interactive Courseware

ZeroEd Search Engine

Article Rewriter Tool

Word Counter Tool

Other Tools

STEM Gender Equality | ZOOM | Slack | eBook