human
I wrote the below code

    def decorator(func):
        name = ('_calling_%s_' % func.__name__)
        def newfunc(self, *args, **kwds):
            if getattr(self, name, False):
                return default()
            setattr(self, name, True)
            try:
                return func(self, *args, **kwds)
            finally:
                setattr(self, name, False)
        return newfunc
    return decorator

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def prevent_recursion(default):