def method ( func ) : attr = abc . abstractmethod ( func ) attr . __imethod__ = True return attr
declaring a method as private in python
Wrap a function as a method .
def method(func):
    """Wrap a function as a method."""
    attr = abc.abstractmethod(func)
    attr.__imethod__ = True
    return attr