Python Decorators Tutorial

Veröffentlicht am: 19 Dezember 2016
auf dem Kanal: codebasics
101,471
2k

Video without background music:    • 25. Decorators [Python 3 Programming ...  

In this tutorial, I will explain decorators in a very simple way by going over how to measure the execution time of function using decorators. They serve as a wrapper to original function but does a wonderful job of avoiding code duplication and not cluttering original code with additional logic. The video discusses why there is a need of decorators, what is a decorator, how to create decorators and what is call repper function.

Topics that are covered in this Python Video:
0:00 Explain why decorators needed?
3:52 What is a decorator?
4:18 create decorators
4:26 Call repper function

Code in this tutorial is available here: https://github.com/codebasics/py/blob...

Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.

Next Video:
Python unit testing - pytest parameters:    • numpy tutorial - introduction | numpy...  

Website: https://codebasics.io/
Facebook:   / codebasicshub  
Twitter:   / codebasicshub  


Auf dieser Seite können Sie das Online-Video Python Decorators Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer codebasics 19 Dezember 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 101,471 Mal angesehen und es wurde von 2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!