Skip to content
    wraps@caputomarcos
    main.py
    Packager files
    poetry.lock
    pyproject.toml
    Config files
    .replit
    replit.nix
    from functools import wraps

    def my_decorator(func):
    @wraps(func)
    def wrapper(*args, **kwargs):
    print('Before')
    result = func(*args, **kwargs)
    print('After')
    return result
    return wrapper

    @my_decorator
    def my_function():
    """This is my function"""
    print('Hello World!')

    print(my_function.__name__)
    print(my_function.__doc__)