Skip to content
Snippets Groups Projects
Commit 16e1e020 authored by Robert Bechara's avatar Robert Bechara
Browse files

Delete decorator_1.py

parent 6ceaf917
No related merge requests found
def a_decorator(a_function):
def wrapper():
print("this gets done before a_function() is called.")
a_function()
print("this gets done after a_function() is called.")
return wrapper
def an_actual_function():
print("i am an_actual_function!")
an_actual_function = a_decorator(an_actual_function)
an_actual_function()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment