Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python generator cheat sheet download

from functools import wraps

def debug(func):
    @wraps(func)
    def out(*args, **kwargs):
        print(func.__name__)
        return func(*args, **kwargs)
    return out

@debug
def add(x, y):
    return x + y
Source by gto76.github.io #
 
PREVIOUS NEXT
Tagged: #python #generator #cheat #sheet #download
ADD COMMENT
Topic
Name
6+2 =