Weird decorator for you

Here is a Python decorator you can steal use:

def this_never_existed(unreal_function):
  def wrapper(*args, **kwargs):
    exit('This function never existed lol')

  return wrapper

To use it you can do this:

@this_never_existed
def greet(name):
  print(f'Hello, {name}!')

greet('John')

Make sure to use it in the Python Beta template.

2 Likes