def primary(func):
    """Method decorator (for primary methods only)."""
    if not isfunction(func):
        raise TypeError('%r is not a function' % func)
    return _WrappedMethodPlaceholder(func)
Method decorator (for primary methods only).
recipes/Python/577859_CLOSlike_aroundbeforeafter_auxiliary/recipe-577859.py