-
-
Save Mandera/cf378cf650cd0a957562b9b6c400cfe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def function1(): | |
print(1) | |
def function2(): | |
print(1) | |
def functions(): | |
function1() | |
function2() | |
def _visual_decorator(func): | |
def _wrapper(*args, **kwargs): | |
print("Something meaningful") | |
return func(*args, **kwargs) | |
return _wrapper | |
visual = True | |
if visual: | |
functions = _visual_decorator(functions) | |
while True: | |
functions() | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment