Skip to content

Disi77/KurzPythonKnihovny_Dekoratory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homework DECORATORS

Course PyLadies Ostrava Python and its libraries autumn 2020

https://naucse.python.cz/2020/pyladies-ostrava-podzim-pokrocili/

Tasks:

  1. Write a decorator that adds a list of the function name and arguments to the function - it is suitable for debugging .
  2. Write a decorator that measures how long function works and prints the result. Can be combined with first decorator.
  3. Write any custom decorator.
  4. If an exception occurs in the function, the decorator provide a link to google and start searching the specific error.
  5. Write a decorator who forbids function "print".

Solution:

  • File 'my_decorator.py' contains decorators.
  • Files task*.py contains simple examples of decorator's usage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages